Sign in
fuchsia
/
third_party
/
rust
/
7bade6ef730cff83f3591479a98916920f66decd
/
.
/
src
/
test
/
ui
/
generics
/
generic-type-params-forward-mention.rs
blob: ac0cab20d78a2cfc33a560754ba65edd5f571114 [
file
] [
log
] [
blame
]
// Ensure that we get an error and not an ICE for this problematic case.
struct
Foo
<
T
=
Option
<
U
>,
U
=
bool
>(
T
,
U
);
//~^ ERROR type parameters with a default cannot use forward declared identifiers
fn
main
()
{
let
x
:
Foo
;
}