]>
Commit | Line | Data |
---|---|---|
6a06907d XL |
1 | warning: the feature `type_alias_impl_trait` is incomplete and may not be safe to use and/or cause compiler crashes |
2 | --> $DIR/error-handling-2.rs:6:32 | |
3 | | | |
4 | LL | #![cfg_attr(full_tait, feature(type_alias_impl_trait))] | |
5 | | ^^^^^^^^^^^^^^^^^^^^^ | |
6 | | | |
7 | = note: `#[warn(incomplete_features)]` on by default | |
8 | = note: see issue #63063 <https://github.com/rust-lang/rust/issues/63063> for more information | |
9 | ||
10 | error[E0700]: hidden type for `impl Trait` captures lifetime that does not appear in bounds | |
11 | --> $DIR/error-handling-2.rs:16:60 | |
12 | | | |
13 | LL | fn foo<'a: 'b, 'b, 'c>(x: &'static i32, mut y: &'a i32) -> E<'b, 'c> { | |
14 | | ^^^^^^^^^ | |
15 | | | |
16 | note: hidden type `*mut &'a i32` captures the lifetime `'a` as defined on the function body at 16:8 | |
17 | --> $DIR/error-handling-2.rs:16:8 | |
18 | | | |
19 | LL | fn foo<'a: 'b, 'b, 'c>(x: &'static i32, mut y: &'a i32) -> E<'b, 'c> { | |
20 | | ^^ | |
21 | ||
22 | error: aborting due to previous error; 1 warning emitted | |
23 | ||
24 | For more information about this error, try `rustc --explain E0700`. |