rust/tests/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
174 B
Rust
Raw Normal View History

fn bar<const X: u8, 'a>(_: &'a ()) {
2022-09-09 12:28:57 +00:00
//~^ ERROR lifetime parameters must be declared prior to type and const parameters
}
fn foo<const X: u8, T>(_: &T) {}
fn main() {}