]> git.lizzy.rs Git - rust.git/blob - src/test/ui/generic/generic-type-params-forward-mention.stderr
Rollup merge of #61207 - taiki-e:arbitrary_self_types-lifetime-elision-2, r=Centril
[rust.git] / src / test / ui / generic / generic-type-params-forward-mention.stderr
1 error[E0128]: type parameters with a default cannot use forward declared identifiers
2   --> $DIR/generic-type-params-forward-mention.rs:2:23
3    |
4 LL | struct Foo<T = Option<U>, U = bool>(T, U);
5    |                       ^ defaulted type parameters cannot be forward declared
6
7 error: aborting due to previous error
8
9 For more information about this error, try `rustc --explain E0128`.