diff options
Diffstat (limited to '')
-rw-r--r-- | src/test/ui/issues/issue-5216.rs | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/test/ui/issues/issue-5216.rs b/src/test/ui/issues/issue-5216.rs new file mode 100644 index 000000000..4072a57cb --- /dev/null +++ b/src/test/ui/issues/issue-5216.rs @@ -0,0 +1,10 @@ +fn f() { } +struct S(Box<dyn FnMut() + Sync>); +pub static C: S = S(f); //~ ERROR mismatched types + + +fn g() { } +type T = Box<dyn FnMut() + Sync>; +pub static D: T = g; //~ ERROR mismatched types + +fn main() {} |