rust/src/test/ui/maybe-bounds.stderr

23 lines
709 B
Plaintext
Raw Normal View History

error: `?Trait` is not permitted in supertraits
2018-12-25 09:56:47 -06:00
--> $DIR/maybe-bounds.rs:1:11
|
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
| ^^^^^^
|
= 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
|
2018-06-09 03:37:07 -05:00
LL | type A1 = Tr + (?Sized); //~ ERROR `?Trait` is not permitted in trait object types
| ^^^^^^^^
error: `?Trait` is not permitted in trait object types
2018-12-25 09:56:47 -06:00
--> $DIR/maybe-bounds.rs:4:24
|
2018-06-09 03:37:07 -05:00
LL | type A2 = for<'a> Tr + (?Sized); //~ ERROR `?Trait` is not permitted in trait object types
| ^^^^^^^^
error: aborting due to 3 previous errors