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