]> git.lizzy.rs Git - rust.git/blob - src/test/ui/const-generics/const-param-before-other-params.rs
Rollup merge of #60081 - pawroman:cleanup_unicode_script, r=varkor
[rust.git] / src / test / ui / const-generics / const-param-before-other-params.rs
1 #![feature(const_generics)]
2 //~^ WARN the feature `const_generics` is incomplete and may cause the compiler to crash
3
4 fn bar<const X: (), 'a>(_: &'a ()) {
5     //~^ ERROR lifetime parameters must be declared prior to const parameters
6 }
7
8 fn foo<const X: (), T>(_: &T) {
9     //~^ ERROR type parameters must be declared prior to const parameters
10 }
11
12 fn main() {}