mirror of
https://github.com/rust-lang/rust.git
synced 2024-12-16 18:44:56 +00:00
10 lines
229 B
Rust
10 lines
229 B
Rust
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() {}
|