fork/rust

git clone https://git.julia.blue/fork/rust

borsAuto merge of #71365 - Mark-Simulacrum:stable-next, r=Mark-Simulacrum4fb7144ed15

1.43.0
501 B11 linesraw
1error[E0277]: the trait bound `std::boxed::Box<dyn Foo>: Foo` is not satisfied
2  --> $DIR/object-does-not-impl-trait.rs:6:44
3   |
4LL | fn take_foo<F:Foo>(f: F) {}
5   |    --------   --- required by this bound in `take_foo`
6LL | fn take_object(f: Box<dyn Foo>) { take_foo(f); }
7   |                                            ^ the trait `Foo` is not implemented for `std::boxed::Box<dyn Foo>`
8
9error: aborting due to previous error
10
11For more information about this error, try `rustc --explain E0277`.