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