error: relaxed bounds are not permitted in supertrait bounds --> $DIR/default-supertrait.rs:8:17 | LL | trait NegSized: ?Sized { } | ^^^^^^ | = note: traits are `?Sized` by default error: relaxed bounds are not permitted in supertrait bounds --> $DIR/default-supertrait.rs:13:21 | LL | trait NegMetaSized: ?MetaSized { } | ^^^^^^^^^^ error: relaxed bounds are not permitted in supertrait bounds --> $DIR/default-supertrait.rs:19:24 | LL | trait NegPointeeSized: ?PointeeSized { } | ^^^^^^^^^^^^^ error[E0277]: the size for values of type `T` cannot be known --> $DIR/default-supertrait.rs:52:38 | LL | fn with_bare_trait() { | ^^^^ doesn't have a known size | note: required by a bound in `Bare` --> $DIR/default-supertrait.rs:22:1 | LL | trait Bare {} | ^^^^^^^^^^^^^ required by this bound in `Bare` help: consider further restricting type parameter `T` with unstable trait `MetaSized` | LL | fn with_bare_trait() { | ++++++++++++++++++++++++ error[E0277]: the size for values of type `T` cannot be known at compilation time --> $DIR/default-supertrait.rs:35:22 | LL | fn with_metasized_supertrait() { | - this type parameter needs to be `Sized` LL | requires_sized::(); | ^ doesn't have a size known at compile-time | note: required by a bound in `requires_sized` --> $DIR/default-supertrait.rs:24:22 | LL | fn requires_sized() {} | ^^^^^ required by this bound in `requires_sized` error[E0277]: the size for values of type `T` cannot be known at compilation time --> $DIR/default-supertrait.rs:43:22 | LL | fn with_pointeesized_supertrait() { | - this type parameter needs to be `Sized` LL | requires_sized::(); | ^ doesn't have a size known at compile-time | note: required by a bound in `requires_sized` --> $DIR/default-supertrait.rs:24:22 | LL | fn requires_sized() {} | ^^^^^ required by this bound in `requires_sized` error[E0277]: the size for values of type `T` cannot be known --> $DIR/default-supertrait.rs:45:26 | LL | requires_metasized::(); | ^ doesn't have a known size | note: required by a bound in `requires_metasized` --> $DIR/default-supertrait.rs:25:26 | LL | fn requires_metasized() {} | ^^^^^^^^^ required by this bound in `requires_metasized` help: consider further restricting type parameter `T` with unstable trait `MetaSized` | LL | fn with_pointeesized_supertrait() { | ++++++++++++++++++++++++ error[E0277]: the size for values of type `T` cannot be known at compilation time --> $DIR/default-supertrait.rs:54:22 | LL | fn with_bare_trait() { | - this type parameter needs to be `Sized` LL | LL | requires_sized::(); | ^ doesn't have a size known at compile-time | note: required by a bound in `requires_sized` --> $DIR/default-supertrait.rs:24:22 | LL | fn requires_sized() {} | ^^^^^ required by this bound in `requires_sized` error[E0277]: the size for values of type `T` cannot be known --> $DIR/default-supertrait.rs:56:26 | LL | requires_metasized::(); | ^ doesn't have a known size | note: required by a bound in `requires_metasized` --> $DIR/default-supertrait.rs:25:26 | LL | fn requires_metasized() {} | ^^^^^^^^^ required by this bound in `requires_metasized` help: consider further restricting type parameter `T` with unstable trait `MetaSized` | LL | fn with_bare_trait() { | ++++++++++++++++++++++++ error: aborting due to 9 previous errors For more information about this error, try `rustc --explain E0277`.