fork/rust
git clone https://git.julia.blue/fork/rust
4fb7144ed15
1.43.0
1error[E0308]: mismatched types 2 --> $DIR/associated-const-impl-wrong-lifetime.rs:7:5 3 | 4LL | const NAME: &'a str = "unit"; 5 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ lifetime mismatch 6 | 7 = note: expected reference `&'static str` 8 found reference `&'a str` 9note: the lifetime `'a` as defined on the impl at 6:6... 10 --> $DIR/associated-const-impl-wrong-lifetime.rs:6:6 11 | 12LL | impl<'a> Foo for &'a () { 13 | ^^ 14 = note: ...does not necessarily outlive the static lifetime 15 16error: aborting due to previous error 17 18For more information about this error, try `rustc --explain E0308`.