]>
Commit | Line | Data |
---|---|---|
dc9dc135 XL |
1 | warning: trait objects without an explicit `dyn` are deprecated |
2 | --> $DIR/trait-bounds-not-on-bare-trait.rs:7:12 | |
3 | | | |
4 | LL | fn foo(_x: Foo + Send) { | |
5 | | ^^^^^^^^^^ help: use `dyn`: `dyn Foo + Send` | |
6 | | | |
416331ca | 7 | = note: `#[warn(bare_trait_objects)]` on by default |
dc9dc135 | 8 | |
b7449926 | 9 | error[E0277]: the size for values of type `(dyn Foo + std::marker::Send + 'static)` cannot be known at compilation time |
0731742a | 10 | --> $DIR/trait-bounds-not-on-bare-trait.rs:7:8 |
b7449926 XL |
11 | | |
12 | LL | fn foo(_x: Foo + Send) { | |
13 | | ^^ doesn't have a size known at compile-time | |
14 | | | |
15 | = help: the trait `std::marker::Sized` is not implemented for `(dyn Foo + std::marker::Send + 'static)` | |
0731742a | 16 | = note: to learn more, visit <https://doc.rust-lang.org/book/ch19-04-advanced-types.html#dynamically-sized-types-and-the-sized-trait> |
b7449926 XL |
17 | = note: all local variables must have a statically known size |
18 | = help: unsized locals are gated as an unstable feature | |
19 | ||
ba9703b0 | 20 | error: aborting due to previous error; 1 warning emitted |
b7449926 XL |
21 | |
22 | For more information about this error, try `rustc --explain E0277`. |