You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -1384,7 +1379,6 @@ impl<'a> Visitor<'a> for AstValidator<'a> {
1384
1379
letmut err = self.err_handler().struct_span_err(bound.span(),"`~const` is not allowed here");
1385
1380
match reason {
1386
1381
DisallowTildeConstContext::TraitObject => err.note("trait objects cannot have `~const` trait bounds"),
1387
-
DisallowTildeConstContext::ImplTrait => err.note("`impl Trait`s cannot have `~const` trait bounds"),
1388
1382
DisallowTildeConstContext::Fn(FnKind::Closure(..)) => err.note("closures cannot have `~const` trait bounds"),
1389
1383
DisallowTildeConstContext::Fn(FnKind::Fn(_, ident, ..)) => err.span_note(ident.span,"this function is not `const`, so it cannot have `~const` trait bounds"),
0 commit comments