fork/rust

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

borsAuto merge of #103046 - JanBeh:PR_clarify_cmp_terminology, r=workingjubilee3bcad65fbf6

master
629 B14 linesraw
1error[E0277]: the size for values of type `(dyn std::fmt::Display + 'static)` cannot be known at compilation time
2  --> $DIR/capture-unsized-by-move.rs:7:9
3   |
4LL |     let k2 = move || {
5   |                   -- this closure captures all values by move
6LL |         k.to_string();
7   |         ^ doesn't have a size known at compile-time
8   |
9   = help: the trait `Sized` is not implemented for `(dyn std::fmt::Display + 'static)`
10   = note: all values captured by value by a closure must have a statically known size
11
12error: aborting due to previous error
13
14For more information about this error, try `rustc --explain E0277`.