fork/rust

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

borsAuto merge of #69854 - pietroalbini:stable-next, r=Centrilb8cedc00407

1.42.0
449 B14 linesraw
1error: expected identifier, found keyword `const`
2  --> $DIR/opt-out-twice.rs:6:21
3   |
4LL | struct S<T: ?const ?const Tr>;
5   |                     ^^^^^ expected identifier, found keyword
6
7error: expected one of `(`, `+`, `,`, `::`, `<`, `=`, or `>`, found `Tr`
8  --> $DIR/opt-out-twice.rs:6:27
9   |
10LL | struct S<T: ?const ?const Tr>;
11   |                           ^^ expected one of 7 possible tokens
12
13error: aborting due to 2 previous errors
14