1 warning: trait objects without an explicit `dyn` are deprecated
2 --> $DIR/trait-bounds-not-on-bare-trait.rs:7:12
4 LL | fn foo(_x: Foo + Send) {
5 | ^^^^^^^^^^ help: use `dyn`: `dyn Foo + Send`
7 = note: `#[warn(bare_trait_objects)]` on by default
9 error[E0277]: the size for values of type `(dyn Foo + Send + 'static)` cannot be known at compilation time
10 --> $DIR/trait-bounds-not-on-bare-trait.rs:7:8
12 LL | fn foo(_x: Foo + Send) {
13 | ^^ doesn't have a size known at compile-time
15 = help: the trait `Sized` is not implemented for `(dyn Foo + Send + 'static)`
16 = help: unsized locals are gated as an unstable feature
17 help: function arguments must have a statically known size, borrowed types always have a known size
19 LL | fn foo(_x: &Foo + Send) {
22 error: aborting due to previous error; 1 warning emitted
24 For more information about this error, try `rustc --explain E0277`.