fork/rust

git clone https://git.julia.blue/fork/rust

borsAuto merge of #103046 - JanBeh:PR_clarify_cmp_terminology, r=workingjubilee3bcad65fbf6

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