summaryrefslogtreecommitdiffstats
path: root/src/test/ui/type-alias-impl-trait/missing_lifetime_bound.stderr
blob: df2b3ed1911ed8d2253cafbfd84aa4ef9a255a78 (plain)
1
2
3
4
5
6
7
8
error: non-defining opaque type use in defining scope
  --> $DIR/missing_lifetime_bound.rs:4:47
   |
LL | fn defining<'a, T>(x: &'a i32) -> Opaque<T> { x }
   |                                               ^ lifetime `'a` is part of concrete type but not used in parameter list of the `impl Trait` type alias

error: aborting due to previous error