fork/rust
git clone https://git.julia.blue/fork/rust
4fb7144ed15
1.43.0
1error[E0308]: mismatched types 2 --> $DIR/issue-5216.rs:3:21 3 | 4LL | pub static C: S = S(f); 5 | ^ expected struct `std::boxed::Box`, found fn item 6 | 7 = note: expected struct `std::boxed::Box<(dyn std::ops::FnMut() + 'static)>` 8 found fn item `fn() {f}` 9 10error[E0308]: mismatched types 11 --> $DIR/issue-5216.rs:8:19 12 | 13LL | pub static D: T = g; 14 | ^ expected struct `std::boxed::Box`, found fn item 15 | 16 = note: expected struct `std::boxed::Box<(dyn std::ops::FnMut() + 'static)>` 17 found fn item `fn() {g}` 18 19error: aborting due to 2 previous errors 20 21For more information about this error, try `rustc --explain E0308`.