2022-07-24 19:33:26 +00:00
|
|
|
error[E0308]: const not compatible with trait
|
2018-12-25 08:56:47 -07:00
|
|
|
--> $DIR/trait-associated-constant.rs:21:5
|
2018-02-01 22:26:48 -05:00
|
|
|
|
|
2018-02-23 03:42:32 +03:00
|
|
|
LL | const AC: Option<&'c str> = None;
|
2022-09-30 17:56:07 +01:00
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^ lifetime mismatch
|
2018-02-01 22:26:48 -05:00
|
|
|
|
|
2020-09-02 10:40:56 +03:00
|
|
|
= note: expected enum `Option<&'b str>`
|
|
|
|
found enum `Option<&'c str>`
|
2021-10-05 12:11:51 +00:00
|
|
|
note: the lifetime `'c` as defined here...
|
2018-12-25 08:56:47 -07:00
|
|
|
--> $DIR/trait-associated-constant.rs:20:18
|
2018-02-01 22:26:48 -05:00
|
|
|
|
|
2019-03-12 18:33:27 -04:00
|
|
|
LL | impl<'a: 'b, 'b, 'c> Anything<'a, 'b> for FailStruct {
|
2018-06-27 16:44:39 -07:00
|
|
|
| ^^
|
2021-10-05 12:11:51 +00:00
|
|
|
note: ...does not necessarily outlive the lifetime `'b` as defined here
|
2018-12-25 08:56:47 -07:00
|
|
|
--> $DIR/trait-associated-constant.rs:20:14
|
2018-02-01 22:26:48 -05:00
|
|
|
|
|
2019-03-12 18:33:27 -04:00
|
|
|
LL | impl<'a: 'b, 'b, 'c> Anything<'a, 'b> for FailStruct {
|
2018-06-27 16:44:39 -07:00
|
|
|
| ^^
|
2018-02-01 22:26:48 -05:00
|
|
|
|
2019-03-10 22:18:38 -04:00
|
|
|
error: aborting due to previous error
|
2018-02-01 22:26:48 -05:00
|
|
|
|
2018-03-03 15:59:40 +01:00
|
|
|
For more information about this error, try `rustc --explain E0308`.
|