rust/src/test/ui/issues/issue-5216.rs
2018-12-25 21:08:33 -07:00

11 lines
184 B
Rust

fn f() { }
struct S(Box<FnMut()>);
pub static C: S = S(f); //~ ERROR mismatched types
fn g() { }
type T = Box<FnMut()>;
pub static D: T = g; //~ ERROR mismatched types
fn main() {}