1 error[E0308]: const not compatible with trait
2 --> $DIR/trait-associated-constant.rs:21:5
4 LL | const AC: Option<&'c str> = None;
5 | ^^^^^^^^^^^^^^^^^^^^^^^^^ lifetime mismatch
7 = note: expected enum `Option<&'b str>`
8 found enum `Option<&'c str>`
9 note: the lifetime `'c` as defined here...
10 --> $DIR/trait-associated-constant.rs:20:18
12 LL | impl<'a: 'b, 'b, 'c> Anything<'a, 'b> for FailStruct {
14 note: ...does not necessarily outlive the lifetime `'b` as defined here
15 --> $DIR/trait-associated-constant.rs:20:14
17 LL | impl<'a: 'b, 'b, 'c> Anything<'a, 'b> for FailStruct {
20 error: aborting due to previous error
22 For more information about this error, try `rustc --explain E0308`.