2018-02-01 22:26:48 -05:00
|
|
|
error[E0308]: mismatched types
|
|
|
|
--> $DIR/trait-associated-constant.rs:31:5
|
|
|
|
|
|
|
|
|
31 | const AC: Option<&'c str> = None;
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ lifetime mismatch
|
|
|
|
|
|
|
|
|
= note: expected type `std::option::Option<&'b str>`
|
|
|
|
found type `std::option::Option<&'c str>`
|
|
|
|
note: the lifetime 'c as defined on the impl at 30:1...
|
|
|
|
--> $DIR/trait-associated-constant.rs:30:1
|
|
|
|
|
|
2018-02-07 00:46:36 -05:00
|
|
|
30 | impl<'a: 'b, 'b, 'c> Anything<'a, 'b> for FailStruct1 {
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
2018-02-01 22:26:48 -05:00
|
|
|
note: ...does not necessarily outlive the lifetime 'b as defined on the impl at 30:1
|
|
|
|
--> $DIR/trait-associated-constant.rs:30:1
|
|
|
|
|
|
2018-02-07 00:46:36 -05:00
|
|
|
30 | impl<'a: 'b, 'b, 'c> Anything<'a, 'b> for FailStruct1 {
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
2018-02-01 22:26:48 -05:00
|
|
|
|
|
|
|
error[E0308]: mismatched types
|
|
|
|
--> $DIR/trait-associated-constant.rs:38:5
|
|
|
|
|
|
|
|
|
38 | const AC: Option<&'a str> = None;
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ lifetime mismatch
|
|
|
|
|
|
|
|
|
= note: expected type `std::option::Option<&'b str>`
|
|
|
|
found type `std::option::Option<&'a str>`
|
|
|
|
note: the lifetime 'a as defined on the impl at 37:1...
|
|
|
|
--> $DIR/trait-associated-constant.rs:37:1
|
|
|
|
|
|
2018-02-07 00:46:36 -05:00
|
|
|
37 | impl<'a: 'b, 'b> Anything<'a, 'b> for FailStruct2 {
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
2018-02-01 22:26:48 -05:00
|
|
|
note: ...does not necessarily outlive the lifetime 'b as defined on the impl at 37:1
|
|
|
|
--> $DIR/trait-associated-constant.rs:37:1
|
|
|
|
|
|
2018-02-07 00:46:36 -05:00
|
|
|
37 | impl<'a: 'b, 'b> Anything<'a, 'b> for FailStruct2 {
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
2018-02-01 22:26:48 -05:00
|
|
|
|
|
|
|
error: aborting due to 2 previous errors
|
|
|
|
|
2018-02-19 21:40:25 +01:00
|
|
|
If you want more information on this error, try using "rustc --explain E0308"
|