]> git.lizzy.rs Git - rust.git/blob - tests/ui/type-alias-impl-trait/missing_lifetime_bound.stderr
Rollup merge of #106323 - starkat99:stabilize-f16c_target_feature, r=petrochenkov
[rust.git] / tests / ui / type-alias-impl-trait / missing_lifetime_bound.stderr
1 error[E0700]: hidden type for `Opaque<'a, T>` captures lifetime that does not appear in bounds
2   --> $DIR/missing_lifetime_bound.rs:4:47
3    |
4 LL | fn defining<'a, T>(x: &'a i32) -> Opaque<T> { x }
5    |             --                                ^
6    |             |
7    |             hidden type `&'a i32` captures the lifetime `'a` as defined here
8
9 error: aborting due to previous error
10
11 For more information about this error, try `rustc --explain E0700`.