bless
This commit is contained in:
parent
86a8a3beb4
commit
831f4402aa
@ -2,7 +2,7 @@ error[E0308]: const not compatible with trait
|
|||||||
--> $DIR/associated-const-impl-wrong-lifetime.rs:7:5
|
--> $DIR/associated-const-impl-wrong-lifetime.rs:7:5
|
||||||
|
|
|
|
||||||
LL | const NAME: &'a str = "unit";
|
LL | const NAME: &'a str = "unit";
|
||||||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ lifetime mismatch
|
| ^^^^^^^^^^^^^^^^^^^ lifetime mismatch
|
||||||
|
|
|
|
||||||
= note: expected reference `&'static str`
|
= note: expected reference `&'static str`
|
||||||
found reference `&'a str`
|
found reference `&'a str`
|
||||||
|
@ -2,7 +2,7 @@ error[E0308]: const not compatible with trait
|
|||||||
--> $DIR/trait-associated-constant.rs:21:5
|
--> $DIR/trait-associated-constant.rs:21:5
|
||||||
|
|
|
|
||||||
LL | const AC: Option<&'c str> = None;
|
LL | const AC: Option<&'c str> = None;
|
||||||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ lifetime mismatch
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^ lifetime mismatch
|
||||||
|
|
|
|
||||||
= note: expected enum `Option<&'b str>`
|
= note: expected enum `Option<&'b str>`
|
||||||
found enum `Option<&'c str>`
|
found enum `Option<&'c str>`
|
||||||
|
Loading…
Reference in New Issue
Block a user