rust/src/test/ui/generics/generic-non-trailing-defaults.stderr

15 lines
381 B
Text
Raw Normal View History

2018-08-08 14:28:26 +02:00
error: type parameters with a default must be trailing
2018-12-25 08:56:47 -07:00
--> $DIR/generic-non-trailing-defaults.rs:3:12
2018-08-08 14:28:26 +02:00
|
LL | struct Vec<A = Heap, T>(A, T);
| ^
error: type parameters with a default must be trailing
2018-12-25 08:56:47 -07:00
--> $DIR/generic-non-trailing-defaults.rs:6:15
2018-08-08 14:28:26 +02:00
|
LL | struct Foo<A, B = Vec<C>, C>(A, B, C);
| ^
2020-12-30 15:34:53 +00:00
error: aborting due to 2 previous errors
2018-08-08 14:28:26 +02:00