@@ -6,11 +6,7 @@ LL | auto trait Generic<T> {}
6
6
| |
7
7
| auto trait cannot have generic parameters
8
8
|
9
- help: remove the parameters
10
- |
11
- LL - auto trait Generic<T> {}
12
- LL + auto trait Generic {}
13
- |
9
+ = help: remove the parameters
14
10
15
11
error[E0568]: auto traits cannot have super traits or lifetime bounds
16
12
--> $DIR/auto-trait-validation.rs:8:20
@@ -20,11 +16,7 @@ LL | auto trait Bound : Copy {}
20
16
| |
21
17
| auto traits cannot have super traits or lifetime bounds
22
18
|
23
- help: remove the super traits or lifetime bounds
24
- |
25
- LL - auto trait Bound : Copy {}
26
- LL + auto trait Bound {}
27
- |
19
+ = help: remove the super traits or lifetime bounds
28
20
29
21
error[E0568]: auto traits cannot have super traits or lifetime bounds
30
22
--> $DIR/auto-trait-validation.rs:10:28
@@ -34,11 +26,7 @@ LL | auto trait LifetimeBound : 'static {}
34
26
| |
35
27
| auto traits cannot have super traits or lifetime bounds
36
28
|
37
- help: remove the super traits or lifetime bounds
38
- |
39
- LL - auto trait LifetimeBound : 'static {}
40
- LL + auto trait LifetimeBound {}
41
- |
29
+ = help: remove the super traits or lifetime bounds
42
30
43
31
error[E0380]: auto traits cannot have associated items
44
32
--> $DIR/auto-trait-validation.rs:12:25
0 commit comments