2017-12-10 13:47:55 -06:00
|
|
|
error: `?Trait` is not permitted in supertraits
|
|
|
|
--> $DIR/maybe-bounds.rs:11:12
|
|
|
|
|
|
|
|
|
11 | trait Tr: ?Sized {} //~ ERROR `?Trait` is not permitted in supertraits
|
|
|
|
| ^^^^^
|
|
|
|
|
|
|
|
|
= note: traits are `?Sized` by default
|
|
|
|
|
|
|
|
error: `?Trait` is not permitted in trait object types
|
2017-12-10 14:29:24 -06:00
|
|
|
--> $DIR/maybe-bounds.rs:13:17
|
2017-12-10 13:47:55 -06:00
|
|
|
|
|
2017-12-10 14:29:24 -06:00
|
|
|
13 | 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
|
2017-12-10 14:29:24 -06:00
|
|
|
--> $DIR/maybe-bounds.rs:14:25
|
2017-12-10 13:47:55 -06:00
|
|
|
|
|
2017-12-10 14:29:24 -06:00
|
|
|
14 | 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
|
|
|
|
|