fork/rust

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

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

1.43.0
797 B26 linesraw
1error: `?const` is not permitted in `impl Trait`
2  --> $DIR/in-impl-trait.rs:9:19
3   |
4LL | fn rpit() -> impl ?const T { S }
5   |                   ^^^^^^^^
6
7error: `?const` is not permitted in `impl Trait`
8  --> $DIR/in-impl-trait.rs:12:17
9   |
10LL | fn apit(_: impl ?const T) {}
11   |                 ^^^^^^^^
12
13error: `?const` is not permitted in `impl Trait`
14  --> $DIR/in-impl-trait.rs:15:50
15   |
16LL | fn rpit_assoc_bound() -> impl IntoIterator<Item: ?const T> { Some(S) }
17   |                                                  ^^^^^^^^
18
19error: `?const` is not permitted in `impl Trait`
20  --> $DIR/in-impl-trait.rs:18:48
21   |
22LL | fn apit_assoc_bound(_: impl IntoIterator<Item: ?const T>) {}
23   |                                                ^^^^^^^^
24
25error: aborting due to 4 previous errors
26