]> git.lizzy.rs Git - rust.git/blob - src/test/ui/const-generics/argument_order.rs
Override rustc version in ui and mir-opt tests to get stable hashes
[rust.git] / src / test / ui / const-generics / argument_order.rs
1 struct Bad<const N: usize, T> {
2     arr: [u8; { N }],
3     another: T,
4 }
5
6 struct AlsoBad<const N: usize, 'a, T, 'b, const M: usize, U> {
7     //~^ ERROR lifetime parameters must be declared prior
8     a: &'a T,
9     b: &'b U,
10 }
11
12 fn main() {
13     let _: AlsoBad<7, 'static, u32, 'static, 17, u16>;
14     //~^ ERROR lifetime provided when a type was expected
15  }