@@ -9,19 +9,13 @@ error[E0308]: mismatched types
9
9
note: the lifetime 'c as defined on the impl at 30:1...
10
10
--> $DIR/trait-associated-constant.rs:30:1
11
11
|
12
- 30 | / impl<'a: 'b, 'b, 'c> Anything<'a, 'b> for FailStruct1 {
13
- 31 | | const AC: Option<&'c str> = None;
14
- 32 | | //~^ ERROR: mismatched types
15
- 33 | | }
16
- | |_^
12
+ 30 | impl<'a: 'b, 'b, 'c> Anything<'a, 'b> for FailStruct1 {
13
+ | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
17
14
note: ...does not necessarily outlive the lifetime 'b as defined on the impl at 30:1
18
15
--> $DIR/trait-associated-constant.rs:30:1
19
16
|
20
- 30 | / impl<'a: 'b, 'b, 'c> Anything<'a, 'b> for FailStruct1 {
21
- 31 | | const AC: Option<&'c str> = None;
22
- 32 | | //~^ ERROR: mismatched types
23
- 33 | | }
24
- | |_^
17
+ 30 | impl<'a: 'b, 'b, 'c> Anything<'a, 'b> for FailStruct1 {
18
+ | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
25
19
26
20
error[E0308]: mismatched types
27
21
--> $DIR/trait-associated-constant.rs:38:5
@@ -34,19 +28,13 @@ error[E0308]: mismatched types
34
28
note: the lifetime 'a as defined on the impl at 37:1...
35
29
--> $DIR/trait-associated-constant.rs:37:1
36
30
|
37
- 37 | / impl<'a: 'b, 'b> Anything<'a, 'b> for FailStruct2 {
38
- 38 | | const AC: Option<&'a str> = None;
39
- 39 | | //~^ ERROR: mismatched types
40
- 40 | | }
41
- | |_^
31
+ 37 | impl<'a: 'b, 'b> Anything<'a, 'b> for FailStruct2 {
32
+ | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
42
33
note: ...does not necessarily outlive the lifetime 'b as defined on the impl at 37:1
43
34
--> $DIR/trait-associated-constant.rs:37:1
44
35
|
45
- 37 | / impl<'a: 'b, 'b> Anything<'a, 'b> for FailStruct2 {
46
- 38 | | const AC: Option<&'a str> = None;
47
- 39 | | //~^ ERROR: mismatched types
48
- 40 | | }
49
- | |_^
36
+ 37 | impl<'a: 'b, 'b> Anything<'a, 'b> for FailStruct2 {
37
+ | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
50
38
51
39
error: aborting due to 2 previous errors
52
40
0 commit comments