@@ -130,23 +130,23 @@ LL | const fn get_mut_sq(&mut self) -> &mut T { &mut self.0 }
130
130
= note: see issue #57349 <https://github.com/rust-lang/rust/issues/57349> for more information
131
131
= help: add `#![feature(const_mut_refs)]` to the crate attributes to enable
132
132
133
- error[E0723 ]: trait bounds other than `Sized` on const fn parameters are unstable
133
+ error[E0658 ]: trait bounds other than `Sized` on const fn parameters are unstable
134
134
--> $DIR/min_const_fn.rs:84:16
135
135
|
136
136
LL | const fn foo11<T: std::fmt::Display>(t: T) -> T { t }
137
137
| ^
138
138
|
139
139
= note: see issue #57563 <https://github.com/rust-lang/rust/issues/57563> for more information
140
- = help: add `#![feature(const_fn )]` to the crate attributes to enable
140
+ = help: add `#![feature(const_fn_trait_bound )]` to the crate attributes to enable
141
141
142
- error[E0723 ]: trait bounds other than `Sized` on const fn parameters are unstable
142
+ error[E0658 ]: trait bounds other than `Sized` on const fn parameters are unstable
143
143
--> $DIR/min_const_fn.rs:86:18
144
144
|
145
145
LL | const fn foo11_2<T: Send>(t: T) -> T { t }
146
146
| ^
147
147
|
148
148
= note: see issue #57563 <https://github.com/rust-lang/rust/issues/57563> for more information
149
- = help: add `#![feature(const_fn )]` to the crate attributes to enable
149
+ = help: add `#![feature(const_fn_trait_bound )]` to the crate attributes to enable
150
150
151
151
error[E0013]: constant functions cannot refer to statics
152
152
--> $DIR/min_const_fn.rs:90:27
@@ -209,41 +209,41 @@ LL | const fn inc(x: &mut i32) { *x += 1 }
209
209
= note: see issue #57349 <https://github.com/rust-lang/rust/issues/57349> for more information
210
210
= help: add `#![feature(const_mut_refs)]` to the crate attributes to enable
211
211
212
- error[E0723 ]: trait bounds other than `Sized` on const fn parameters are unstable
212
+ error[E0658 ]: trait bounds other than `Sized` on const fn parameters are unstable
213
213
--> $DIR/min_const_fn.rs:110:6
214
214
|
215
215
LL | impl<T: std::fmt::Debug> Foo<T> {
216
216
| ^
217
217
|
218
218
= note: see issue #57563 <https://github.com/rust-lang/rust/issues/57563> for more information
219
- = help: add `#![feature(const_fn )]` to the crate attributes to enable
219
+ = help: add `#![feature(const_fn_trait_bound )]` to the crate attributes to enable
220
220
221
- error[E0723 ]: trait bounds other than `Sized` on const fn parameters are unstable
221
+ error[E0658 ]: trait bounds other than `Sized` on const fn parameters are unstable
222
222
--> $DIR/min_const_fn.rs:115:6
223
223
|
224
224
LL | impl<T: std::fmt::Debug + Sized> Foo<T> {
225
225
| ^
226
226
|
227
227
= note: see issue #57563 <https://github.com/rust-lang/rust/issues/57563> for more information
228
- = help: add `#![feature(const_fn )]` to the crate attributes to enable
228
+ = help: add `#![feature(const_fn_trait_bound )]` to the crate attributes to enable
229
229
230
- error[E0723 ]: trait bounds other than `Sized` on const fn parameters are unstable
230
+ error[E0658 ]: trait bounds other than `Sized` on const fn parameters are unstable
231
231
--> $DIR/min_const_fn.rs:120:6
232
232
|
233
233
LL | impl<T: Sync + Sized> Foo<T> {
234
234
| ^
235
235
|
236
236
= note: see issue #57563 <https://github.com/rust-lang/rust/issues/57563> for more information
237
- = help: add `#![feature(const_fn )]` to the crate attributes to enable
237
+ = help: add `#![feature(const_fn_trait_bound )]` to the crate attributes to enable
238
238
239
- error[E0723 ]: trait bounds other than `Sized` on const fn parameters are unstable
239
+ error[E0658 ]: trait bounds other than `Sized` on const fn parameters are unstable
240
240
--> $DIR/min_const_fn.rs:126:34
241
241
|
242
242
LL | const fn no_apit2(_x: AlanTuring<impl std::fmt::Debug>) {}
243
243
| ^^^^^^^^^^^^^^^^^^^^
244
244
|
245
245
= note: see issue #57563 <https://github.com/rust-lang/rust/issues/57563> for more information
246
- = help: add `#![feature(const_fn )]` to the crate attributes to enable
246
+ = help: add `#![feature(const_fn_trait_bound )]` to the crate attributes to enable
247
247
248
248
error[E0493]: destructors cannot be evaluated at compile-time
249
249
--> $DIR/min_const_fn.rs:126:19
@@ -253,14 +253,14 @@ LL | const fn no_apit2(_x: AlanTuring<impl std::fmt::Debug>) {}
253
253
| |
254
254
| constant functions cannot evaluate destructors
255
255
256
- error[E0723 ]: trait bounds other than `Sized` on const fn parameters are unstable
256
+ error[E0658 ]: trait bounds other than `Sized` on const fn parameters are unstable
257
257
--> $DIR/min_const_fn.rs:129:22
258
258
|
259
259
LL | const fn no_apit(_x: impl std::fmt::Debug) {}
260
260
| ^^^^^^^^^^^^^^^^^^^^
261
261
|
262
262
= note: see issue #57563 <https://github.com/rust-lang/rust/issues/57563> for more information
263
- = help: add `#![feature(const_fn )]` to the crate attributes to enable
263
+ = help: add `#![feature(const_fn_trait_bound )]` to the crate attributes to enable
264
264
265
265
error[E0493]: destructors cannot be evaluated at compile-time
266
266
--> $DIR/min_const_fn.rs:129:18
@@ -270,23 +270,23 @@ LL | const fn no_apit(_x: impl std::fmt::Debug) {}
270
270
| |
271
271
| constant functions cannot evaluate destructors
272
272
273
- error[E0723 ]: trait bounds other than `Sized` on const fn parameters are unstable
273
+ error[E0658 ]: trait bounds other than `Sized` on const fn parameters are unstable
274
274
--> $DIR/min_const_fn.rs:132:23
275
275
|
276
276
LL | const fn no_dyn_trait(_x: &dyn std::fmt::Debug) {}
277
277
| ^^
278
278
|
279
279
= note: see issue #57563 <https://github.com/rust-lang/rust/issues/57563> for more information
280
- = help: add `#![feature(const_fn )]` to the crate attributes to enable
280
+ = help: add `#![feature(const_fn_trait_bound )]` to the crate attributes to enable
281
281
282
- error[E0723 ]: trait bounds other than `Sized` on const fn parameters are unstable
282
+ error[E0658 ]: trait bounds other than `Sized` on const fn parameters are unstable
283
283
--> $DIR/min_const_fn.rs:134:32
284
284
|
285
285
LL | const fn no_dyn_trait_ret() -> &'static dyn std::fmt::Debug { &() }
286
286
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
287
287
|
288
288
= note: see issue #57563 <https://github.com/rust-lang/rust/issues/57563> for more information
289
- = help: add `#![feature(const_fn )]` to the crate attributes to enable
289
+ = help: add `#![feature(const_fn_trait_bound )]` to the crate attributes to enable
290
290
291
291
error[E0723]: unsizing casts to types besides slices are not allowed in const fn
292
292
--> $DIR/min_const_fn.rs:134:63
0 commit comments