1 // Ensure we don't suggest tuple-wrapping when we'd end up with a type error
4 // we shouldn't suggest to fix these - `2` isn't a `bool`
6 let _: Option<(i32, bool)> = Some(1, 2);
7 //~^ ERROR this enum variant takes 1 argument but 2 arguments were supplied
9 //~^ ERROR this function takes 1 argument but 2 arguments were supplied
11 let _: Option<(i8,)> = Some();
12 //~^ ERROR this enum variant takes 1 argument but 0 arguments were supplied
14 let _: Option<(i32,)> = Some(5_usize);
15 //~^ ERROR mismatched types
17 let _: Option<(i32,)> = Some((5_usize));
18 //~^ ERROR mismatched types
21 fn int_bool(_: (i32, bool)) {