@@ -9,20 +9,6 @@ help: indicate the anonymous lifetime
9
9
12 | impl Trait<'_> for A {
10
10
| ++++
11
11
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
-
26
12
error[E0195]: lifetime parameters or bounds on method `method` do not match the trait declaration
27
13
--> tests/ui/lifetime-span.rs:13:14
28
14
|
@@ -41,6 +27,20 @@ error[E0195]: lifetime parameters or bounds on method `method` do not match the
41
27
18 | async fn method(&self) {}
42
28
| ^^^^^^^^^^^^^ lifetimes do not match method in trait
43
29
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
+
44
44
error[E0195]: lifetime parameters or bounds on method `method` do not match the trait declaration
45
45
--> tests/ui/lifetime-span.rs:33:14
46
46
|
0 commit comments