fork/rust
git clone https://git.julia.blue/fork/rust
3bcad65fbf6
master
1error[E0308]: const not compatible with trait 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 here... 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`.