blob: c31320c548594ae602f5df5abd9eceec131f5b3e [file] [log] [blame]
//@ run-rustfix
fn main() {
let _x: Box<dyn Fn() -> Result<(), ()>> = || { //~ ERROR mismatched types
Err(())?;
Ok(())
};
}