rust/tests/ui/sized-hierarchy/reject-dyn-pointeesized.stderr

15 lines
400 B
Plaintext

error: `PointeeSized` cannot be used with trait objects
--> $DIR/reject-dyn-pointeesized.rs:5:12
|
LL | type Foo = dyn PointeeSized;
| ^^^^^^^^^^^^^^^^
error: `PointeeSized` cannot be used with trait objects
--> $DIR/reject-dyn-pointeesized.rs:14:16
|
LL | let y: Box<dyn PointeeSized> = x;
| ^^^^^^^^^^^^^^^^
error: aborting due to 2 previous errors