rust/tests/ui/const-generics/defaults/wrong-order.rs

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

10 lines
229 B
Rust
Raw Normal View History

struct A<T = u32, const N: usize> {
2021-03-01 11:50:09 +00:00
//~^ ERROR generic parameters with a default must be trailing
arg: T,
}
2021-10-20 22:44:50 +00:00
struct Foo<const N: u8 = 3, T>(T);
//~^ error: generic parameters with a default must be trailing
fn main() {}