]> git.proxmox.com Git - rustc.git/blob - src/test/ui/const-generics/argument_order.full.stderr
New upstream version 1.48.0~beta.8+dfsg1
[rustc.git] / src / test / ui / const-generics / argument_order.full.stderr
1 error: lifetime parameters must be declared prior to const parameters
2 --> $DIR/argument_order.rs:12: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:20: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`.