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