rust/tests/ui/const-generics/defaults/intermixed-lifetime.stderr

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

15 lines
686 B
Plaintext
Raw Normal View History

2022-09-09 07:28:57 -05:00
error: lifetime parameters must be declared prior to type and const parameters
2021-10-23 10:57:49 -05:00
--> $DIR/intermixed-lifetime.rs:3:28
|
LL | struct Foo<const N: usize, 'a, T = u32>(&'a (), T);
| -----------------^^---------- help: reorder the parameters: lifetimes, then consts and types: `<'a, const N: usize, T = u32>`
2022-09-09 07:28:57 -05:00
error: lifetime parameters must be declared prior to type and const parameters
2021-10-23 10:57:49 -05:00
--> $DIR/intermixed-lifetime.rs:6:37
|
LL | struct Bar<const N: usize, T = u32, 'a>(&'a (), T);
| --------------------------^^- help: reorder the parameters: lifetimes, then consts and types: `<'a, const N: usize, T = u32>`
error: aborting due to 2 previous errors