@@ -4,151 +4,6 @@ error[E0635]: unknown feature `const_fn_trait_ref_impls`
4
4
LL | #![feature(const_fn_trait_ref_impls)]
5
5
| ^^^^^^^^^^^^^^^^^^^^^^^^
6
6
7
- error: `[const]` can only be applied to `#[const_trait]` traits
8
- --> $DIR/fn_trait_refs.rs:14:8
9
- |
10
- LL | T: [const] Fn<()> + [const] Destruct,
11
- | ^^^^^^^ can't be applied to `Fn`
12
- |
13
- note: `Fn` can't be used with `[const]` because it isn't annotated with `#[const_trait]`
14
- --> $SRC_DIR/core/src/ops/function.rs:LL:COL
15
-
16
- error: `[const]` can only be applied to `#[const_trait]` traits
17
- --> $DIR/fn_trait_refs.rs:14:8
18
- |
19
- LL | T: [const] Fn<()> + [const] Destruct,
20
- | ^^^^^^^ can't be applied to `Fn`
21
- |
22
- note: `Fn` can't be used with `[const]` because it isn't annotated with `#[const_trait]`
23
- --> $SRC_DIR/core/src/ops/function.rs:LL:COL
24
- = note: duplicate diagnostic emitted due to `-Z deduplicate-diagnostics=no`
25
-
26
- error: `[const]` can only be applied to `#[const_trait]` traits
27
- --> $DIR/fn_trait_refs.rs:14:8
28
- |
29
- LL | T: [const] Fn<()> + [const] Destruct,
30
- | ^^^^^^^ can't be applied to `Fn`
31
- |
32
- note: `Fn` can't be used with `[const]` because it isn't annotated with `#[const_trait]`
33
- --> $SRC_DIR/core/src/ops/function.rs:LL:COL
34
- = note: duplicate diagnostic emitted due to `-Z deduplicate-diagnostics=no`
35
-
36
- error: `[const]` can only be applied to `#[const_trait]` traits
37
- --> $DIR/fn_trait_refs.rs:21:8
38
- |
39
- LL | T: [const] FnMut<()> + [const] Destruct,
40
- | ^^^^^^^ can't be applied to `FnMut`
41
- |
42
- note: `FnMut` can't be used with `[const]` because it isn't annotated with `#[const_trait]`
43
- --> $SRC_DIR/core/src/ops/function.rs:LL:COL
44
-
45
- error: `[const]` can only be applied to `#[const_trait]` traits
46
- --> $DIR/fn_trait_refs.rs:21:8
47
- |
48
- LL | T: [const] FnMut<()> + [const] Destruct,
49
- | ^^^^^^^ can't be applied to `FnMut`
50
- |
51
- note: `FnMut` can't be used with `[const]` because it isn't annotated with `#[const_trait]`
52
- --> $SRC_DIR/core/src/ops/function.rs:LL:COL
53
- = note: duplicate diagnostic emitted due to `-Z deduplicate-diagnostics=no`
54
-
55
- error: `[const]` can only be applied to `#[const_trait]` traits
56
- --> $DIR/fn_trait_refs.rs:21:8
57
- |
58
- LL | T: [const] FnMut<()> + [const] Destruct,
59
- | ^^^^^^^ can't be applied to `FnMut`
60
- |
61
- note: `FnMut` can't be used with `[const]` because it isn't annotated with `#[const_trait]`
62
- --> $SRC_DIR/core/src/ops/function.rs:LL:COL
63
- = note: duplicate diagnostic emitted due to `-Z deduplicate-diagnostics=no`
64
-
65
- error: `[const]` can only be applied to `#[const_trait]` traits
66
- --> $DIR/fn_trait_refs.rs:28:8
67
- |
68
- LL | T: [const] FnOnce<()>,
69
- | ^^^^^^^ can't be applied to `FnOnce`
70
- |
71
- note: `FnOnce` can't be used with `[const]` because it isn't annotated with `#[const_trait]`
72
- --> $SRC_DIR/core/src/ops/function.rs:LL:COL
73
-
74
- error: `[const]` can only be applied to `#[const_trait]` traits
75
- --> $DIR/fn_trait_refs.rs:28:8
76
- |
77
- LL | T: [const] FnOnce<()>,
78
- | ^^^^^^^ can't be applied to `FnOnce`
79
- |
80
- note: `FnOnce` can't be used with `[const]` because it isn't annotated with `#[const_trait]`
81
- --> $SRC_DIR/core/src/ops/function.rs:LL:COL
82
- = note: duplicate diagnostic emitted due to `-Z deduplicate-diagnostics=no`
83
-
84
- error: `[const]` can only be applied to `#[const_trait]` traits
85
- --> $DIR/fn_trait_refs.rs:28:8
86
- |
87
- LL | T: [const] FnOnce<()>,
88
- | ^^^^^^^ can't be applied to `FnOnce`
89
- |
90
- note: `FnOnce` can't be used with `[const]` because it isn't annotated with `#[const_trait]`
91
- --> $SRC_DIR/core/src/ops/function.rs:LL:COL
92
- = note: duplicate diagnostic emitted due to `-Z deduplicate-diagnostics=no`
93
-
94
- error: `[const]` can only be applied to `#[const_trait]` traits
95
- --> $DIR/fn_trait_refs.rs:35:8
96
- |
97
- LL | T: [const] Fn<()> + [const] Destruct,
98
- | ^^^^^^^ can't be applied to `Fn`
99
- |
100
- note: `Fn` can't be used with `[const]` because it isn't annotated with `#[const_trait]`
101
- --> $SRC_DIR/core/src/ops/function.rs:LL:COL
102
-
103
- error: `[const]` can only be applied to `#[const_trait]` traits
104
- --> $DIR/fn_trait_refs.rs:35:8
105
- |
106
- LL | T: [const] Fn<()> + [const] Destruct,
107
- | ^^^^^^^ can't be applied to `Fn`
108
- |
109
- note: `Fn` can't be used with `[const]` because it isn't annotated with `#[const_trait]`
110
- --> $SRC_DIR/core/src/ops/function.rs:LL:COL
111
- = note: duplicate diagnostic emitted due to `-Z deduplicate-diagnostics=no`
112
-
113
- error: `[const]` can only be applied to `#[const_trait]` traits
114
- --> $DIR/fn_trait_refs.rs:35:8
115
- |
116
- LL | T: [const] Fn<()> + [const] Destruct,
117
- | ^^^^^^^ can't be applied to `Fn`
118
- |
119
- note: `Fn` can't be used with `[const]` because it isn't annotated with `#[const_trait]`
120
- --> $SRC_DIR/core/src/ops/function.rs:LL:COL
121
- = note: duplicate diagnostic emitted due to `-Z deduplicate-diagnostics=no`
122
-
123
- error: `[const]` can only be applied to `#[const_trait]` traits
124
- --> $DIR/fn_trait_refs.rs:49:8
125
- |
126
- LL | T: [const] FnMut<()> + [const] Destruct,
127
- | ^^^^^^^ can't be applied to `FnMut`
128
- |
129
- note: `FnMut` can't be used with `[const]` because it isn't annotated with `#[const_trait]`
130
- --> $SRC_DIR/core/src/ops/function.rs:LL:COL
131
-
132
- error: `[const]` can only be applied to `#[const_trait]` traits
133
- --> $DIR/fn_trait_refs.rs:49:8
134
- |
135
- LL | T: [const] FnMut<()> + [const] Destruct,
136
- | ^^^^^^^ can't be applied to `FnMut`
137
- |
138
- note: `FnMut` can't be used with `[const]` because it isn't annotated with `#[const_trait]`
139
- --> $SRC_DIR/core/src/ops/function.rs:LL:COL
140
- = note: duplicate diagnostic emitted due to `-Z deduplicate-diagnostics=no`
141
-
142
- error: `[const]` can only be applied to `#[const_trait]` traits
143
- --> $DIR/fn_trait_refs.rs:49:8
144
- |
145
- LL | T: [const] FnMut<()> + [const] Destruct,
146
- | ^^^^^^^ can't be applied to `FnMut`
147
- |
148
- note: `FnMut` can't be used with `[const]` because it isn't annotated with `#[const_trait]`
149
- --> $SRC_DIR/core/src/ops/function.rs:LL:COL
150
- = note: duplicate diagnostic emitted due to `-Z deduplicate-diagnostics=no`
151
-
152
7
error[E0277]: the trait bound `(i32, i32, i32): const PartialEq` is not satisfied
153
8
--> $DIR/fn_trait_refs.rs:71:17
154
9
|
@@ -161,31 +16,7 @@ error[E0277]: the trait bound `(i32, i32): const PartialEq` is not satisfied
161
16
LL | assert!(test_two == (2, 2));
162
17
| ^^^^^^^^^^^^^^^^^^
163
18
164
- error[E0015]: cannot call non-const closure in constant functions
165
- --> $DIR/fn_trait_refs.rs:16:5
166
- |
167
- LL | f()
168
- | ^^^
169
- |
170
- = note: calls in constant functions are limited to constant functions, tuple structs and tuple variants
171
-
172
- error[E0015]: cannot call non-const closure in constant functions
173
- --> $DIR/fn_trait_refs.rs:23:5
174
- |
175
- LL | f()
176
- | ^^^
177
- |
178
- = note: calls in constant functions are limited to constant functions, tuple structs and tuple variants
179
-
180
- error[E0015]: cannot call non-const closure in constant functions
181
- --> $DIR/fn_trait_refs.rs:30:5
182
- |
183
- LL | f()
184
- | ^^^
185
- |
186
- = note: calls in constant functions are limited to constant functions, tuple structs and tuple variants
187
-
188
- error: aborting due to 21 previous errors
19
+ error: aborting due to 3 previous errors
189
20
190
- Some errors have detailed explanations: E0015, E0277, E0635.
191
- For more information about an error, try `rustc --explain E0015 `.
21
+ Some errors have detailed explanations: E0277, E0635.
22
+ For more information about an error, try `rustc --explain E0277 `.
0 commit comments