]> git.lizzy.rs Git - rust.git/blob - src/test/ui/const-generics/const-param-before-other-params.rs
Override rustc version in ui and mir-opt tests to get stable hashes
[rust.git] / src / test / ui / const-generics / const-param-before-other-params.rs
1 fn bar<const X: u8, 'a>(_: &'a ()) {
2     //~^ ERROR lifetime parameters must be declared prior to const parameters
3 }
4
5 fn foo<const X: u8, T>(_: &T) {}
6
7 fn main() {}