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

23 lines
712 B
Plaintext
Raw Normal View History

error: `?Trait` is not permitted in supertraits
2018-04-27 17:32:54 +09:00
--> $DIR/maybe-bounds.rs:11:11
|
2018-02-23 03:42:32 +03:00
LL | trait Tr: ?Sized {} //~ ERROR `?Trait` is not permitted in supertraits
2018-04-27 17:32:54 +09:00
| ^^^^^^
|
= note: traits are `?Sized` by default
error: `?Trait` is not permitted in trait object types
2018-04-27 17:32:54 +09:00
--> $DIR/maybe-bounds.rs:13:16
|
2018-06-09 17:37:07 +09: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-04-27 17:32:54 +09:00
--> $DIR/maybe-bounds.rs:14:24
|
2018-06-09 17:37:07 +09:00
LL | type A2 = for<'a> Tr + (?Sized); //~ ERROR `?Trait` is not permitted in trait object types
| ^^^^^^^^
error: aborting due to 3 previous errors