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