1 error[E0308]: mismatched types
2 --> $DIR/associated-const-impl-wrong-lifetime.rs:18:5
4 18 | const NAME: &'a str = "unit";
5 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ lifetime mismatch
7 = note: expected type `&'static str`
9 note: the lifetime 'a as defined on the impl at 17:1...
10 --> $DIR/associated-const-impl-wrong-lifetime.rs:17:1
12 17 | impl<'a> Foo for &'a () {
13 | ^^^^^^^^^^^^^^^^^^^^^^^
14 = note: ...does not necessarily outlive the static lifetime
16 error: aborting due to previous error