fork/rust
git clone https://git.julia.blue/fork/rust
3bcad65fbf6
master
1error[E0277]: the trait bound `Box<dyn Foo>: Foo` is not satisfied 2 --> $DIR/object-does-not-impl-trait.rs:6:44 3 | 4LL | fn take_object(f: Box<dyn Foo>) { take_foo(f); } 5 | -------- ^ the trait `Foo` is not implemented for `Box<dyn Foo>` 6 | | 7 | required by a bound introduced by this call 8 | 9help: this trait has no implementations, consider adding one 10 --> $DIR/object-does-not-impl-trait.rs:4:1 11 | 12LL | trait Foo {} 13 | ^^^^^^^^^ 14note: required by a bound in `take_foo` 15 --> $DIR/object-does-not-impl-trait.rs:5:15 16 | 17LL | fn take_foo<F:Foo>(f: F) {} 18 | ^^^ required by this bound in `take_foo` 19 20error: aborting due to previous error 21 22For more information about this error, try `rustc --explain E0277`.