fork/rust

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

borsAuto merge of #66089 - Mark-Simulacrum:stable-next, r=Mark-Simulacrum4560ea788cb

1.39.0
821 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 type `std::option::Option<&'b str>`
8              found type `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`.