]> git.lizzy.rs Git - rust.git/blob - tests/ui/static/issue-5216.rs
Rollup merge of #106397 - compiler-errors:new-solver-impl-wc, r=lcnr
[rust.git] / tests / ui / static / issue-5216.rs
1 fn f() { }
2 struct S(Box<dyn FnMut() + Sync>);
3 pub static C: S = S(f); //~ ERROR mismatched types
4
5
6 fn g() { }
7 type T = Box<dyn FnMut() + Sync>;
8 pub static D: T = g; //~ ERROR mismatched types
9
10 fn main() {}