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