]>
Commit | Line | Data |
---|---|---|
74b04a01 | 1 | error[E0700]: hidden type for `impl Trait` captures lifetime that does not appear in bounds |
6a06907d | 2 | --> $DIR/error-handling-2.rs:16:60 |
74b04a01 XL |
3 | | |
4 | LL | fn foo<'a: 'b, 'b, 'c>(x: &'static i32, mut y: &'a i32) -> E<'b, 'c> { | |
5 | | ^^^^^^^^^ | |
6 | | | |
6a06907d XL |
7 | note: hidden type `*mut &'a i32` captures the lifetime `'a` as defined on the function body at 16:8 |
8 | --> $DIR/error-handling-2.rs:16:8 | |
74b04a01 XL |
9 | | |
10 | LL | fn foo<'a: 'b, 'b, 'c>(x: &'static i32, mut y: &'a i32) -> E<'b, 'c> { | |
11 | | ^^ | |
12 | ||
13 | error: aborting due to previous error | |
14 | ||
15 | For more information about this error, try `rustc --explain E0700`. |