summaryrefslogtreecommitdiffstats
path: root/tests/ui/generics/generic-type-params-forward-mention.stderr
blob: fa661c274ebcaefba3d31224c8e7c992058f0424 (plain)
1
2
3
4
5
6
7
8
9
error[E0128]: generic parameters with a default cannot use forward declared identifiers
  --> $DIR/generic-type-params-forward-mention.rs:2:23
   |
LL | struct Foo<T = Option<U>, U = bool>(T, U);
   |                       ^ defaulted generic parameters cannot be forward declared

error: aborting due to previous error

For more information about this error, try `rustc --explain E0128`.