fork/rust
git clone https://git.julia.blue/fork/rust
3bcad65fbf6
master
1error[E0277]: the size for values of type `(dyn Foo + 'static)` cannot be known at compilation time 2 --> $DIR/issue-111932.rs:4:20 3 | 4LL | foos.for_each(|foo| { 5 | ^^^ doesn't have a size known at compile-time 6 | 7 = help: the trait `Sized` is not implemented for `(dyn Foo + 'static)` 8 = note: all function arguments must have a statically known size 9 = help: unsized fn params are gated as an unstable feature 10 11error[E0277]: the size for values of type `dyn Foo` cannot be known at compilation time 12 --> $DIR/issue-111932.rs:5:26 13 | 14LL | println!("{:?}", foo); 15 | ---- ^^^ doesn't have a size known at compile-time 16 | | 17 | required by a bound introduced by this call 18 | 19 = help: the trait `Sized` is not implemented for `dyn Foo` 20note: required by a bound in `core::fmt::rt::Argument::<'a>::new_debug` 21 --> $SRC_DIR/core/src/fmt/rt.rs:LL:COL 22 = note: this error originates in the macro `$crate::format_args_nl` which comes from the expansion of the macro `println` (in Nightly builds, run with -Z macro-backtrace for more info) 23 24error: aborting due to 2 previous errors 25 26For more information about this error, try `rustc --explain E0277`.