fork/rust

git clone https://git.julia.blue/fork/rust

borsAuto merge of #71365 - Mark-Simulacrum:stable-next, r=Mark-Simulacrum4fb7144ed15

1.43.0
615 B20 linesraw
1error: `?const` is not permitted in trait objects
2  --> $DIR/in-trait-object.rs:10:6
3   |
4LL | impl ?const T {}
5   |      ^^^^^^^^
6
7error: `?const` is not permitted in trait objects
8  --> $DIR/in-trait-object.rs:13:35
9   |
10LL | fn trait_object() -> &'static dyn ?const T { &S }
11   |                                   ^^^^^^^^
12
13error: `?const` is not permitted in trait objects
14  --> $DIR/in-trait-object.rs:16:61
15   |
16LL | fn trait_object_in_apit(_: impl IntoIterator<Item = Box<dyn ?const T>>) {}
17   |                                                             ^^^^^^^^
18
19error: aborting due to 3 previous errors
20