fork/rust

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

borsAuto merge of #69444 - pietroalbini:stable-next-final-v2-new, r=pietroalbinif3e1a954d2e

1.41.1
715 B21 linesraw
1error: type parameters with a default must be trailing
2  --> $DIR/generic-non-trailing-defaults.rs:3:12
3   |
4LL | struct Vec<A = Heap, T>(A, T);
5   |            ^
6
7error: type parameters with a default must be trailing
8  --> $DIR/generic-non-trailing-defaults.rs:6:15
9   |
10LL | struct Foo<A, B = Vec<C>, C>(A, B, C);
11   |               ^
12
13error[E0128]: type parameters with a default cannot use forward declared identifiers
14  --> $DIR/generic-non-trailing-defaults.rs:6:23
15   |
16LL | struct Foo<A, B = Vec<C>, C>(A, B, C);
17   |                       ^ defaulted type parameters cannot be forward declared
18
19error: aborting due to 3 previous errors
20
21For more information about this error, try `rustc --explain E0128`.