]> git.lizzy.rs Git - rust.git/blob - src/test/ui/generics/generic-type-params-forward-mention.rs
Merge commit '0969bc6dde001e01e7e1f58c8ccd7750f8a49ae1' into sync_cg_clif-2021-03-29
[rust.git] / src / test / ui / generics / generic-type-params-forward-mention.rs
1 // Ensure that we get an error and not an ICE for this problematic case.
2 struct Foo<T = Option<U>, U = bool>(T, U);
3 //~^ ERROR generic parameters with a default cannot use forward declared identifiers
4 fn main() {
5     let x: Foo;
6 }