@@ -10,6 +10,90 @@ error[E0635]: unknown feature `const_cmp`
10
10
LL | #![feature(const_cmp)]
11
11
| ^^^^^^^^^
12
12
13
- error: aborting due to 2 previous errors
13
+ error: ~const can only be applied to `#[const_trait]` traits
14
+ --> $DIR/fn_trait_refs.rs:15:15
15
+ |
16
+ LL | T: ~const Fn<()> + ~const Destruct,
17
+ | ^^^^^^
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
+ error: ~const can only be applied to `#[const_trait]` traits
26
+ --> $DIR/fn_trait_refs.rs:15:15
27
+ |
28
+ LL | T: ~const Fn<()> + ~const Destruct,
29
+ | ^^^^^^
30
+
31
+ error: ~const can only be applied to `#[const_trait]` traits
32
+ --> $DIR/fn_trait_refs.rs:22:15
33
+ |
34
+ LL | T: ~const FnMut<()> + ~const Destruct,
35
+ | ^^^^^^^^^
36
+
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
+ error: ~const can only be applied to `#[const_trait]` traits
44
+ --> $DIR/fn_trait_refs.rs:22:15
45
+ |
46
+ LL | T: ~const FnMut<()> + ~const Destruct,
47
+ | ^^^^^^^^^
48
+
49
+ error: ~const can only be applied to `#[const_trait]` traits
50
+ --> $DIR/fn_trait_refs.rs:29:15
51
+ |
52
+ LL | T: ~const FnOnce<()>,
53
+ | ^^^^^^^^^^
54
+
55
+ error: ~const can only be applied to `#[const_trait]` traits
56
+ --> $DIR/fn_trait_refs.rs:29:15
57
+ |
58
+ LL | T: ~const FnOnce<()>,
59
+ | ^^^^^^^^^^
60
+
61
+ error: ~const can only be applied to `#[const_trait]` traits
62
+ --> $DIR/fn_trait_refs.rs:36:15
63
+ |
64
+ LL | T: ~const Fn<()> + ~const Destruct,
65
+ | ^^^^^^
66
+
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
+ error: ~const can only be applied to `#[const_trait]` traits
74
+ --> $DIR/fn_trait_refs.rs:36:15
75
+ |
76
+ LL | T: ~const Fn<()> + ~const Destruct,
77
+ | ^^^^^^
78
+
79
+ error: ~const can only be applied to `#[const_trait]` traits
80
+ --> $DIR/fn_trait_refs.rs:50:15
81
+ |
82
+ LL | T: ~const FnMut<()> + ~const Destruct,
83
+ | ^^^^^^^^^
84
+
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
+ error: ~const can only be applied to `#[const_trait]` traits
92
+ --> $DIR/fn_trait_refs.rs:50:15
93
+ |
94
+ LL | T: ~const FnMut<()> + ~const Destruct,
95
+ | ^^^^^^^^^
96
+
97
+ error: aborting due to 16 previous errors
14
98
15
99
For more information about this error, try `rustc --explain E0635`.
0 commit comments