error: bound modifier `?` can only be applied to `Sized` --> $DIR/default-bound.rs:16:21 | LL | fn neg_metasized() {} | ^^^^^^^^^^ error: bound modifier `?` can only be applied to `Sized` --> $DIR/default-bound.rs:22:24 | LL | fn neg_pointeesized() { } | ^^^^^^^^^^^^^ error[E0277]: the size for values of type `[u8]` cannot be known at compilation time --> $DIR/default-bound.rs:29:12 | LL | bare::<[u8]>(); | ^^^^ doesn't have a size known at compile-time | = help: the trait `Sized` is not implemented for `[u8]` note: required by an implicit `Sized` bound in `bare` --> $DIR/default-bound.rs:6:9 | LL | fn bare() {} | ^ required by the implicit `Sized` requirement on this type parameter in `bare` help: consider relaxing the implicit `Sized` restriction | LL | fn bare() {} | ++++++++ error[E0277]: the size for values of type `[u8]` cannot be known at compilation time --> $DIR/default-bound.rs:31:13 | LL | sized::<[u8]>(); | ^^^^ doesn't have a size known at compile-time | = help: the trait `Sized` is not implemented for `[u8]` note: required by a bound in `sized` --> $DIR/default-bound.rs:9:13 | LL | fn sized() {} | ^^^^^ required by this bound in `sized` error[E0277]: the size for values of type `main::Foo` cannot be known at compilation time --> $DIR/default-bound.rs:42:12 | LL | bare::(); | ^^^ doesn't have a size known at compile-time | = help: the trait `Sized` is not implemented for `main::Foo` note: required by an implicit `Sized` bound in `bare` --> $DIR/default-bound.rs:6:9 | LL | fn bare() {} | ^ required by the implicit `Sized` requirement on this type parameter in `bare` help: consider relaxing the implicit `Sized` restriction | LL | fn bare() {} | ++++++++ error[E0277]: the size for values of type `main::Foo` cannot be known at compilation time --> $DIR/default-bound.rs:44:13 | LL | sized::(); | ^^^ doesn't have a size known at compile-time | = help: the trait `Sized` is not implemented for `main::Foo` note: required by a bound in `sized` --> $DIR/default-bound.rs:9:13 | LL | fn sized() {} | ^^^^^ required by this bound in `sized` error[E0277]: the size for values of type `main::Foo` cannot be known --> $DIR/default-bound.rs:46:17 | LL | metasized::(); | ^^^ doesn't have a known size | = help: the trait `MetaSized` is not implemented for `main::Foo` note: required by a bound in `metasized` --> $DIR/default-bound.rs:14:17 | LL | fn metasized() {} | ^^^^^^^^^ required by this bound in `metasized` error: aborting due to 7 previous errors For more information about this error, try `rustc --explain E0277`.