1
Fork 0
rust/src/test/ui/const-generics/const-param-before-other-params.rs

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

8 lines
173 B
Rust
Raw Normal View History

fn bar<const X: u8, 'a>(_: &'a ()) {
2022-09-08 15:53:22 +02:00
//~^ ERROR lifetime parameters must be declared prior to type or const parameters
}
fn foo<const X: u8, T>(_: &T) {}
fn main() {}