2017-12-10 13:47:55 -06:00
|
|
|
error: `?Trait` is not permitted in supertraits
|
2018-12-25 09:56:47 -06:00
|
|
|
--> $DIR/maybe-bounds.rs:1:11
|
2017-12-10 13:47:55 -06:00
|
|
|
|
|
2018-02-22 18:42:32 -06:00
|
|
|
LL | trait Tr: ?Sized {} //~ ERROR `?Trait` is not permitted in supertraits
|
2018-04-27 03:32:54 -05:00
|
|
|
| ^^^^^^
|
2017-12-10 13:47:55 -06:00
|
|
|
|
|
|
|
|
= note: traits are `?Sized` by default
|
|
|
|
|
|
|
|
error: `?Trait` is not permitted in trait object types
|
2018-12-25 09:56:47 -06:00
|
|
|
--> $DIR/maybe-bounds.rs:3:16
|
2017-12-10 13:47:55 -06:00
|
|
|
|
|
2018-06-09 03:37:07 -05:00
|
|
|
LL | type A1 = Tr + (?Sized); //~ ERROR `?Trait` is not permitted in trait object types
|
|
|
|
| ^^^^^^^^
|
2017-12-10 13:47:55 -06:00
|
|
|
|
|
|
|
error: `?Trait` is not permitted in trait object types
|
2018-12-25 09:56:47 -06:00
|
|
|
--> $DIR/maybe-bounds.rs:4:24
|
2017-12-10 13:47:55 -06:00
|
|
|
|
|
2018-06-09 03:37:07 -05:00
|
|
|
LL | type A2 = for<'a> Tr + (?Sized); //~ ERROR `?Trait` is not permitted in trait object types
|
|
|
|
| ^^^^^^^^
|
2017-12-10 13:47:55 -06:00
|
|
|
|
|
|
|
error: aborting due to 3 previous errors
|
|
|
|
|