fork/rust

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

borsAuto merge of #103046 - JanBeh:PR_clarify_cmp_terminology, r=workingjubilee3bcad65fbf6

master
727 B21 linesraw
1error: generic 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: generic 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]: generic 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 generic parameters cannot be forward declared
18
19error: aborting due to 3 previous errors
20
21For more information about this error, try `rustc --explain E0128`.