rust/src/test/ui/maybe-bounds.stderr
Vadim Petrochenkov fa72a81bea Update tests
2019-03-11 23:10:26 +03:00

23 lines
542 B
Plaintext

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