rust/tests/ui/const-generics/defaults/param-order-err-pretty-prints-default.rs

5 lines
143 B
Rust
Raw Normal View History

struct Foo<const M: usize = 10, 'a>(&'a u32);
2022-09-09 07:28:57 -05:00
//~^ ERROR lifetime parameters must be declared prior to type and const parameters
fn main() {}