@@ -16,12 +16,6 @@ error: ~const can only be applied to `#[const_trait]` traits
16
16
LL | T: ~const Fn<()> + ~const Destruct,
17
17
| ^^^^^^
18
18
19
- error: ~const can only be applied to `#[const_trait]` traits
20
- --> $DIR/fn_trait_refs.rs:15:31
21
- |
22
- LL | T: ~const Fn<()> + ~const Destruct,
23
- | ^^^^^^^^
24
-
25
19
error: ~const can only be applied to `#[const_trait]` traits
26
20
--> $DIR/fn_trait_refs.rs:15:15
27
21
|
@@ -34,12 +28,6 @@ error: ~const can only be applied to `#[const_trait]` traits
34
28
LL | T: ~const FnMut<()> + ~const Destruct,
35
29
| ^^^^^^^^^
36
30
37
- error: ~const can only be applied to `#[const_trait]` traits
38
- --> $DIR/fn_trait_refs.rs:22:34
39
- |
40
- LL | T: ~const FnMut<()> + ~const Destruct,
41
- | ^^^^^^^^
42
-
43
31
error: ~const can only be applied to `#[const_trait]` traits
44
32
--> $DIR/fn_trait_refs.rs:22:15
45
33
|
@@ -64,12 +52,6 @@ error: ~const can only be applied to `#[const_trait]` traits
64
52
LL | T: ~const Fn<()> + ~const Destruct,
65
53
| ^^^^^^
66
54
67
- error: ~const can only be applied to `#[const_trait]` traits
68
- --> $DIR/fn_trait_refs.rs:36:31
69
- |
70
- LL | T: ~const Fn<()> + ~const Destruct,
71
- | ^^^^^^^^
72
-
73
55
error: ~const can only be applied to `#[const_trait]` traits
74
56
--> $DIR/fn_trait_refs.rs:36:15
75
57
|
@@ -82,18 +64,12 @@ error: ~const can only be applied to `#[const_trait]` traits
82
64
LL | T: ~const FnMut<()> + ~const Destruct,
83
65
| ^^^^^^^^^
84
66
85
- error: ~const can only be applied to `#[const_trait]` traits
86
- --> $DIR/fn_trait_refs.rs:50:34
87
- |
88
- LL | T: ~const FnMut<()> + ~const Destruct,
89
- | ^^^^^^^^
90
-
91
67
error: ~const can only be applied to `#[const_trait]` traits
92
68
--> $DIR/fn_trait_refs.rs:50:15
93
69
|
94
70
LL | T: ~const FnMut<()> + ~const Destruct,
95
71
| ^^^^^^^^^
96
72
97
- error: aborting due to 16 previous errors
73
+ error: aborting due to 12 previous errors
98
74
99
75
For more information about this error, try `rustc --explain E0635`.
0 commit comments