]> git.lizzy.rs Git - rust.git/blob - tests/ui/generics/generic-non-trailing-defaults.stderr
Rollup merge of #104965 - zacklukem:p-option-as_ref-docs, r=scottmcm
[rust.git] / tests / ui / generics / generic-non-trailing-defaults.stderr
1 error: generic 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: generic 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]: generic 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 generic 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`.