Skip to content

Commit 831f440

Browse files
committed
bless
1 parent 86a8a3b commit 831f440

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/test/ui/associated-consts/associated-const-impl-wrong-lifetime.stderr

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ error[E0308]: const not compatible with trait
22
--> $DIR/associated-const-impl-wrong-lifetime.rs:7:5
33
|
44
LL | const NAME: &'a str = "unit";
5-
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ lifetime mismatch
5+
| ^^^^^^^^^^^^^^^^^^^ lifetime mismatch
66
|
77
= note: expected reference `&'static str`
88
found reference `&'a str`

src/test/ui/nll/trait-associated-constant.stderr

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ error[E0308]: const not compatible with trait
22
--> $DIR/trait-associated-constant.rs:21:5
33
|
44
LL | const AC: Option<&'c str> = None;
5-
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ lifetime mismatch
5+
| ^^^^^^^^^^^^^^^^^^^^^^^^^ lifetime mismatch
66
|
77
= note: expected enum `Option<&'b str>`
88
found enum `Option<&'c str>`

0 commit comments

Comments
 (0)