Sign in
rust
/
rust
/
HEAD
/
.
/
tests
/
ui
/
const-generics
/
defaults
/
wrong-order.rs
blob: d53d56f41e6666c3f7c9086589f14fde957ce23e [
file
] [
log
] [
blame
]
struct
A
<
T
=
u32
,
const
N
:
usize
>
{
//~^ ERROR generic parameters with a default must be trailing
arg
:
T
,
}
struct
Foo
<
const
N
:
u8
=
3
,
T
>(
T
);
//~^ error: generic parameters with a default must be trailing
fn
main
()
{}