mirror of
https://github.com/rust-lang/rust.git
synced 2025-01-23 21:23:20 +00:00
Update trait-associated-const test to new format
This commit is contained in:
parent
5de094e579
commit
e99f8fcbc5
@ -9,19 +9,13 @@ error[E0308]: mismatched types
|
||||
note: the lifetime 'c as defined on the impl at 30:1...
|
||||
--> $DIR/trait-associated-constant.rs:30:1
|
||||
|
|
||||
30 | / impl<'a: 'b, 'b, 'c> Anything<'a, 'b> for FailStruct1 {
|
||||
31 | | const AC: Option<&'c str> = None;
|
||||
32 | | //~^ ERROR: mismatched types
|
||||
33 | | }
|
||||
| |_^
|
||||
30 | impl<'a: 'b, 'b, 'c> Anything<'a, 'b> for FailStruct1 {
|
||||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
note: ...does not necessarily outlive the lifetime 'b as defined on the impl at 30:1
|
||||
--> $DIR/trait-associated-constant.rs:30:1
|
||||
|
|
||||
30 | / impl<'a: 'b, 'b, 'c> Anything<'a, 'b> for FailStruct1 {
|
||||
31 | | const AC: Option<&'c str> = None;
|
||||
32 | | //~^ ERROR: mismatched types
|
||||
33 | | }
|
||||
| |_^
|
||||
30 | impl<'a: 'b, 'b, 'c> Anything<'a, 'b> for FailStruct1 {
|
||||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
|
||||
error[E0308]: mismatched types
|
||||
--> $DIR/trait-associated-constant.rs:38:5
|
||||
@ -34,19 +28,13 @@ error[E0308]: mismatched types
|
||||
note: the lifetime 'a as defined on the impl at 37:1...
|
||||
--> $DIR/trait-associated-constant.rs:37:1
|
||||
|
|
||||
37 | / impl<'a: 'b, 'b> Anything<'a, 'b> for FailStruct2 {
|
||||
38 | | const AC: Option<&'a str> = None;
|
||||
39 | | //~^ ERROR: mismatched types
|
||||
40 | | }
|
||||
| |_^
|
||||
37 | impl<'a: 'b, 'b> Anything<'a, 'b> for FailStruct2 {
|
||||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
note: ...does not necessarily outlive the lifetime 'b as defined on the impl at 37:1
|
||||
--> $DIR/trait-associated-constant.rs:37:1
|
||||
|
|
||||
37 | / impl<'a: 'b, 'b> Anything<'a, 'b> for FailStruct2 {
|
||||
38 | | const AC: Option<&'a str> = None;
|
||||
39 | | //~^ ERROR: mismatched types
|
||||
40 | | }
|
||||
| |_^
|
||||
37 | impl<'a: 'b, 'b> Anything<'a, 'b> for FailStruct2 {
|
||||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
|
||||
error: aborting due to 2 previous errors
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user