]>
Commit | Line | Data |
---|---|---|
94b46f34 | 1 | error[E0700]: hidden type for `impl Trait` captures lifetime that does not appear in bounds |
48663c56 | 2 | --> $DIR/region-escape-via-bound.rs:15:29 |
0531ce1d XL |
3 | | |
4 | LL | fn foo(x: Cell<&'x u32>) -> impl Trait<'y> | |
5 | | ^^^^^^^^^^^^^^ | |
6 | | | |
1b1a35ee | 7 | note: hidden type `Cell<&'x u32>` captures the lifetime `'x` as defined on the function body at 17:7 |
48663c56 | 8 | --> $DIR/region-escape-via-bound.rs:17:7 |
0531ce1d | 9 | | |
8faf50e0 XL |
10 | LL | where 'x: 'y |
11 | | ^^ | |
0531ce1d XL |
12 | |
13 | error: aborting due to previous error | |
14 | ||
94b46f34 | 15 | For more information about this error, try `rustc --explain E0700`. |