summaryrefslogtreecommitdiffstats
path: root/tests/ui/type-alias-impl-trait/missing_lifetime_bound.stderr
blob: d666e668d365570b09ca450be84f030da4446fb0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
error[E0700]: hidden type for `Opaque<'a, T>` captures lifetime that does not appear in bounds
  --> $DIR/missing_lifetime_bound.rs:4:47
   |
LL | type Opaque<'a, T> = impl Sized;
   |                      ---------- opaque type defined here
LL | fn defining<'a, T>(x: &'a i32) -> Opaque<T> { x }
   |             --                                ^
   |             |
   |             hidden type `&'a i32` captures the lifetime `'a` as defined here

error: aborting due to previous error

For more information about this error, try `rustc --explain E0700`.