We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 95fb9ee commit 6152b1dCopy full SHA for 6152b1d
compiler/rustc_typeck/src/astconv/mod.rs
@@ -2635,7 +2635,7 @@ impl<'o, 'tcx> dyn AstConv<'tcx> + 'o {
2635
sugg = format!("<{}>", sugg);
2636
}
2637
2638
- if tcx.sess.edition() >= Edition::Edition2021 {
+ if self_ty.span.edition() >= Edition::Edition2021 {
2639
let msg = "trait objects must include the `dyn` keyword";
2640
let label = "add `dyn` keyword before this trait";
2641
let mut err =
0 commit comments