]> git.lizzy.rs Git - rust.git/blob - src/test/ui/argument-suggestions/complex.rs
Rollup merge of #98665 - ChrisDenton:deprecated-suggestion, r=compiler-errors
[rust.git] / src / test / ui / argument-suggestions / complex.rs
1 // A complex case with mixed suggestions from #65853
2
3 enum E { X, Y }
4 enum F { X2, Y2 }
5 struct G {}
6 struct H {}
7 struct X {}
8 struct Y {}
9 struct Z {}
10
11 fn complex(_i: u32, _s: &str, _e: E, _f: F, _g: G, _x: X, _y: Y, _z: Z ) {}
12
13 fn main() {
14   complex(1.0, H {}, &"", G{}, F::X2, Z {}, X {}, Y {});
15   //~^ ERROR arguments to this function are incorrect
16 }