rust/src/test/ui/maybe-bounds.stderr
2018-12-25 21:08:33 -07:00

23 lines
709 B
Plaintext

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