diff options
Diffstat (limited to '')
-rw-r--r-- | src/test/ui/suggestions/suggest-box.fixed | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/test/ui/suggestions/suggest-box.fixed b/src/test/ui/suggestions/suggest-box.fixed new file mode 100644 index 000000000..3de02cd0b --- /dev/null +++ b/src/test/ui/suggestions/suggest-box.fixed @@ -0,0 +1,8 @@ +// run-rustfix + +fn main() { + let _x: Box<dyn Fn() -> Result<(), ()>> = Box::new(|| { //~ ERROR mismatched types + Err(())?; + Ok(()) + }); +} |