blob: fd490884fa1fcf2e16aa9df947e49b6d1a59e701 (
plain)
1
2
3
4
5
6
7
8
9
10
|
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() {}
|