11 lines
184 B
Rust
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() {}
|