Closed
Description
The example in the README file:
let x = Some(1u8);
match x {
Some(y) => println!("{:?}", y),
_ => ()
}
produces this suggestions:
help: try this: `if let Some(y) = x { $ crate :: io :: _print ( format_args ! ( $ ( $ arg ) * ) ) }`
Using current master (commit: 6b3487a)
And rustc 1.25.0-nightly (b8398d9 2018-02-11)
Note putting the statement inside a block { println!("{:?}", y) }
works properly (and is the current case covered by ui tests).