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 a534216 commit 68da108Copy full SHA for 68da108
src/librustc/hir/lowering.rs
@@ -2299,7 +2299,11 @@ impl<'a> LoweringContext<'a> {
2299
self.lower_trait_bound_modifier(modifier),
2300
),
2301
GenericBound::Outlives(ref lifetime) => {
2302
- hir::GenericBound::Outlives(self.lower_lifetime(lifetime))
+ // We don't want to accept `'a: '_`:
2303
+ self.with_anonymous_lifetime_mode(
2304
+ AnonymousLifetimeMode::PassThrough,
2305
+ |this| hir::GenericBound::Outlives(this.lower_lifetime(lifetime)),
2306
+ )
2307
}
2308
2309
0 commit comments