|
| 1 | +error[E0261]: use of undeclared lifetime name `'missing` |
| 2 | + --> $DIR/lifetime-resolution.rs:8:28 |
| 3 | + | |
| 4 | +LL | let missing: unsafe<> &'missing (); |
| 5 | + | ^^^^^^^^ undeclared lifetime |
| 6 | + | |
| 7 | + = note: for more information on higher-ranked polymorphism, visit https://doc.rust-lang.org/nomicon/hrtb.html |
| 8 | +help: consider making the type lifetime-generic with a new `'missing` lifetime |
| 9 | + | |
| 10 | +LL | let missing: unsafe<'missing, > &'missing (); |
| 11 | + | +++++++++ |
| 12 | +help: consider introducing lifetime `'missing` here |
| 13 | + | |
| 14 | +LL | fn foo<'missing, 'a>() { |
| 15 | + | +++++++++ |
| 16 | + |
| 17 | +error[E0401]: can't use generic parameters from outer item |
| 18 | + --> $DIR/lifetime-resolution.rs:13:30 |
| 19 | + | |
| 20 | +LL | fn foo<'a>() { |
| 21 | + | -- lifetime parameter from outer item |
| 22 | +... |
| 23 | +LL | let outer: unsafe<> &'a &'b (); |
| 24 | + | ^^ use of generic parameter from outer item |
| 25 | + | |
| 26 | +help: consider making the type lifetime-generic with a new `'a` lifetime |
| 27 | + | |
| 28 | +LL | let outer: unsafe<'a, > &'a &'b (); |
| 29 | + | +++ |
| 30 | +help: consider introducing lifetime `'a` here |
| 31 | + | |
| 32 | +LL | fn inner<'a, 'b>() { |
| 33 | + | +++ |
| 34 | + |
| 35 | +warning: the feature `unsafe_binders` is incomplete and may not be safe to use and/or cause compiler crashes |
| 36 | + --> $DIR/lifetime-resolution.rs:1:12 |
| 37 | + | |
| 38 | +LL | #![feature(unsafe_binders)] |
| 39 | + | ^^^^^^^^^^^^^^ |
| 40 | + | |
| 41 | + = note: see issue #130516 <https://github.com/rust-lang/rust/issues/130516> for more information |
| 42 | + = note: `#[warn(incomplete_features)]` on by default |
| 43 | + |
| 44 | +error: unsafe binders are not yet implemented |
| 45 | + --> $DIR/lifetime-resolution.rs:5:15 |
| 46 | + | |
| 47 | +LL | let good: unsafe<'b> &'a &'b (); |
| 48 | + | ^^^^^^^^^^^^^^^^^^^^^ |
| 49 | + |
| 50 | +error: unsafe binders are not yet implemented |
| 51 | + --> $DIR/lifetime-resolution.rs:8:18 |
| 52 | + | |
| 53 | +LL | let missing: unsafe<> &'missing (); |
| 54 | + | ^^^^^^^^^^^^^^^^^^^^^ |
| 55 | + |
| 56 | +error: unsafe binders are not yet implemented |
| 57 | + --> $DIR/lifetime-resolution.rs:13:20 |
| 58 | + | |
| 59 | +LL | let outer: unsafe<> &'a &'b (); |
| 60 | + | ^^^^^^^^^^^^^^^^^^^ |
| 61 | + |
| 62 | +error: aborting due to 5 previous errors; 1 warning emitted |
| 63 | + |
| 64 | +Some errors have detailed explanations: E0261, E0401. |
| 65 | +For more information about an error, try `rustc --explain E0261`. |
0 commit comments