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 05:50:09 -06:00
//~^ ERROR generic parameters with a default must be trailing
arg: T,
}
2021-10-20 17:44:50 -05:00
struct Foo<const N: u8 = 3, T>(T);
//~^ error: generic parameters with a default must be trailing
fn main() {}