@@ -6,16 +6,16 @@ LL | const AC: Option<&'c str> = None;
66 |
77 = note: expected type `std::option::Option<&'b str>`
88 found type `std::option::Option<&'c str>`
9- note: the lifetime 'c as defined on the impl at 30:1 ...
10- --> $DIR/trait-associated-constant.rs:30:1
9+ note: the lifetime 'c as defined on the impl at 30:18 ...
10+ --> $DIR/trait-associated-constant.rs:30:18
1111 |
1212LL | impl<'a: 'b, 'b, 'c> Anything<'a, 'b> for FailStruct1 {
13- | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ^^
14- note: ...does not necessarily outlive the lifetime 'b as defined on the impl at 30:1
15- --> $DIR/trait-associated-constant.rs:30:1
13+ | ^^
14+ note: ...does not necessarily outlive the lifetime 'b as defined on the impl at 30:14
15+ --> $DIR/trait-associated-constant.rs:30:14
1616 |
1717LL | impl<'a: 'b, 'b, 'c> Anything<'a, 'b> for FailStruct1 {
18- | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ^^
18+ | ^^
1919
2020error[E0308]: mismatched types
2121 --> $DIR/trait-associated-constant.rs:38:5
@@ -25,16 +25,16 @@ LL | const AC: Option<&'a str> = None;
2525 |
2626 = note: expected type `std::option::Option<&'b str>`
2727 found type `std::option::Option<&'a str>`
28- note: the lifetime 'a as defined on the impl at 37:1 ...
29- --> $DIR/trait-associated-constant.rs:37:1
28+ note: the lifetime 'a as defined on the impl at 37:6 ...
29+ --> $DIR/trait-associated-constant.rs:37:6
3030 |
3131LL | impl<'a: 'b, 'b> Anything<'a, 'b> for FailStruct2 {
32- | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ^^
33- note: ...does not necessarily outlive the lifetime 'b as defined on the impl at 37:1
34- --> $DIR/trait-associated-constant.rs:37:1
32+ | ^^
33+ note: ...does not necessarily outlive the lifetime 'b as defined on the impl at 37:14
34+ --> $DIR/trait-associated-constant.rs:37:14
3535 |
3636LL | impl<'a: 'b, 'b> Anything<'a, 'b> for FailStruct2 {
37- | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ^^
37+ | ^^
3838
3939error: aborting due to 2 previous errors
4040
0 commit comments