blob: fd490884fa1fcf2e16aa9df947e49b6d1a59e701 [file] [log] [blame]
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() {}