fork/rust

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

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

master
912 B20 linesraw
1error[E0277]: the size for values of type `(dyn Fn() -> u32 + 'static)` cannot be known at compilation time
2  --> $DIR/issue-24446.rs:2:17
3   |
4LL |     static foo: dyn Fn() -> u32 = || -> u32 {
5   |                 ^^^^^^^^^^^^^^^ doesn't have a size known at compile-time
6   |
7   = help: the trait `Sized` is not implemented for `(dyn Fn() -> u32 + 'static)`
8
9error[E0277]: `(dyn Fn() -> u32 + 'static)` cannot be shared between threads safely
10  --> $DIR/issue-24446.rs:2:17
11   |
12LL |     static foo: dyn Fn() -> u32 = || -> u32 {
13   |                 ^^^^^^^^^^^^^^^ `(dyn Fn() -> u32 + 'static)` cannot be shared between threads safely
14   |
15   = help: the trait `Sync` is not implemented for `(dyn Fn() -> u32 + 'static)`
16   = note: shared static variables must have a type that implements `Sync`
17
18error: aborting due to 2 previous errors
19
20For more information about this error, try `rustc --explain E0277`.