Skip to content

Commit d8c07fc

Browse files
committed
Update ui test suite to nightly-2024-03-09
1 parent 8ac3241 commit d8c07fc

File tree

1 file changed

+14
-14
lines changed

1 file changed

+14
-14
lines changed

tests/ui/lifetime-span.stderr

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -9,20 +9,6 @@ help: indicate the anonymous lifetime
99
12 | impl Trait<'_> for A {
1010
| ++++
1111

12-
error[E0107]: trait takes 0 lifetime arguments but 1 lifetime argument was supplied
13-
--> tests/ui/lifetime-span.rs:32:10
14-
|
15-
32 | impl<'r> Trait2<'r> for B {
16-
| ^^^^^^---- help: remove these generics
17-
| |
18-
| expected 0 lifetime arguments
19-
|
20-
note: trait defined here, with 0 lifetime parameters
21-
--> tests/ui/lifetime-span.rs:22:11
22-
|
23-
22 | pub trait Trait2 {
24-
| ^^^^^^
25-
2612
error[E0195]: lifetime parameters or bounds on method `method` do not match the trait declaration
2713
--> tests/ui/lifetime-span.rs:13:14
2814
|
@@ -41,6 +27,20 @@ error[E0195]: lifetime parameters or bounds on method `method` do not match the
4127
18 | async fn method(&self) {}
4228
| ^^^^^^^^^^^^^ lifetimes do not match method in trait
4329

30+
error[E0107]: trait takes 0 lifetime arguments but 1 lifetime argument was supplied
31+
--> tests/ui/lifetime-span.rs:32:10
32+
|
33+
32 | impl<'r> Trait2<'r> for B {
34+
| ^^^^^^---- help: remove these generics
35+
| |
36+
| expected 0 lifetime arguments
37+
|
38+
note: trait defined here, with 0 lifetime parameters
39+
--> tests/ui/lifetime-span.rs:22:11
40+
|
41+
22 | pub trait Trait2 {
42+
| ^^^^^^
43+
4444
error[E0195]: lifetime parameters or bounds on method `method` do not match the trait declaration
4545
--> tests/ui/lifetime-span.rs:33:14
4646
|

0 commit comments

Comments
 (0)