]>
Commit | Line | Data |
---|---|---|
3dfed10e XL |
1 | error: lifetime parameters must be declared prior to const parameters |
2 | --> $DIR/intermixed-lifetime.rs:6:28 | |
3 | | | |
4 | LL | struct Foo<const N: usize, 'a, T = u32>(&'a (), T); | |
5 | | -----------------^^---------- help: reorder the parameters: lifetimes, then consts and types: `<'a, const N: usize, T>` | |
6 | ||
7 | error: lifetime parameters must be declared prior to type parameters | |
8 | --> $DIR/intermixed-lifetime.rs:9:37 | |
9 | | | |
10 | LL | struct Bar<const N: usize, T = u32, 'a>(&'a (), T); | |
11 | | --------------------------^^- help: reorder the parameters: lifetimes, then consts and types: `<'a, const N: usize, T>` | |
12 | ||
13 | error: aborting due to 2 previous errors | |
14 |