]> git.lizzy.rs Git - rust.git/blob - src/test/ui/const-generics/const-param-before-other-params.rs
Auto merge of #57770 - Zoxc:no-hash-query, r=michaelwoerister
[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 foo<const X: (), T>(_: T) {
5     //~^ ERROR type parameters must be declared prior to const parameters
6     //~^^ ERROR const generics in any position are currently unsupported
7 }
8
9 fn bar<const X: (), 'a>(_: &'a ()) {
10     //~^ ERROR lifetime parameters must be declared prior to const parameters
11 }
12
13 fn main() {}