fork/rust

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

borsAuto merge of #69854 - pietroalbini:stable-next, r=Centrilb8cedc00407

1.42.0
825 B22 linesraw
1error[E0308]: mismatched types
2  --> $DIR/trait-associated-constant.rs:21:5
3   |
4LL |     const AC: Option<&'c str> = None;
5   |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ lifetime mismatch
6   |
7   = note: expected enum `std::option::Option<&'b str>`
8              found enum `std::option::Option<&'c str>`
9note: the lifetime `'c` as defined on the impl at 20:18...
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 on the impl at 20:14
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`.