summary refs log tree commit diff
path: root/src/test/ui/issues/issue-5216.rs
blob: 35b343edfbdbe870c23a63f1828936983106b212 (plain)
1
2
3
4
5
6
7
8
9
10
fn f() { }
struct S(Box<dyn FnMut()>);
pub static C: S = S(f); //~ ERROR mismatched types


fn g() { }
type T = Box<dyn FnMut()>;
pub static D: T = g; //~ ERROR mismatched types

fn main() {}