summaryrefslogtreecommitdiffstats
path: root/tests/ui/borrowck/alias-liveness/opaque-type-param.stderr
blob: e1fbbc14f44eeb87110b0b85a6314fb60a6c0fea (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
error[E0700]: hidden type for `impl Trait + 'static` captures lifetime that does not appear in bounds
  --> $DIR/opaque-type-param.rs:7:5
   |
LL | fn foo<'a>(s: &'a str) -> impl Trait + 'static {
   |        --                 -------------------- opaque type defined here
   |        |
   |        hidden type `impl Trait + 'static` captures the lifetime `'a` as defined here
LL |     bar(s)
   |     ^^^^^^

error: aborting due to previous error

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