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

23 lines
542 B
Plaintext
Raw Normal View History

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