rust/tests/ui/const-generics/defaults/wrong-order.stderr

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

15 lines
353 B
Plaintext
Raw Normal View History

2021-03-01 05:50:09 -06:00
error: generic parameters with a default must be trailing
2021-10-23 10:57:49 -05:00
--> $DIR/wrong-order.rs:1:10
|
LL | struct A<T = u32, const N: usize> {
| ^
2021-10-20 17:44:50 -05:00
error: generic parameters with a default must be trailing
2021-10-23 10:57:49 -05:00
--> $DIR/wrong-order.rs:6:18
2021-10-20 17:44:50 -05:00
|
LL | struct Foo<const N: u8 = 3, T>(T);
| ^
error: aborting due to 2 previous errors