]> git.lizzy.rs Git - rust.git/blob - src/test/ui/const-generics/argument_order.stderr
Override rustc version in ui and mir-opt tests to get stable hashes
[rust.git] / src / test / ui / const-generics / argument_order.stderr
1 error: lifetime parameters must be declared prior to const parameters
2   --> $DIR/argument_order.rs:6:32
3    |
4 LL | struct AlsoBad<const N: usize, 'a, T, 'b, const M: usize, U> {
5    |               -----------------^^-----^^-------------------- help: reorder the parameters: lifetimes, then consts and types: `<'a, 'b, const N: usize, T, const M: usize, U>`
6
7 error[E0747]: lifetime provided when a type was expected
8   --> $DIR/argument_order.rs:13:23
9    |
10 LL |     let _: AlsoBad<7, 'static, u32, 'static, 17, u16>;
11    |                       ^^^^^^^
12    |
13    = note: lifetime arguments must be provided before type arguments
14    = help: reorder the arguments: lifetimes, then consts: `<'a, 'b, N, T, M, U>`
15
16 error: aborting due to 2 previous errors
17
18 For more information about this error, try `rustc --explain E0747`.