]> git.lizzy.rs Git - rust.git/blob - src/test/ui/generic/generic-non-trailing-defaults.stderr
Rollup merge of #61207 - taiki-e:arbitrary_self_types-lifetime-elision-2, r=Centril
[rust.git] / src / test / ui / generic / generic-non-trailing-defaults.stderr
1 error: type parameters with a default must be trailing
2   --> $DIR/generic-non-trailing-defaults.rs:3:12
3    |
4 LL | struct Vec<A = Heap, T>(A, T);
5    |            ^
6
7 error: type parameters with a default must be trailing
8   --> $DIR/generic-non-trailing-defaults.rs:6:15
9    |
10 LL | struct Foo<A, B = Vec<C>, C>(A, B, C);
11    |               ^
12
13 error[E0128]: type parameters with a default cannot use forward declared identifiers
14   --> $DIR/generic-non-trailing-defaults.rs:6:23
15    |
16 LL | struct Foo<A, B = Vec<C>, C>(A, B, C);
17    |                       ^ defaulted type parameters cannot be forward declared
18
19 error: aborting due to 3 previous errors
20
21 For more information about this error, try `rustc --explain E0128`.