diff options
Diffstat (limited to 'tests/ui/argument-suggestions/complex.rs')
-rw-r--r-- | tests/ui/argument-suggestions/complex.rs | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/tests/ui/argument-suggestions/complex.rs b/tests/ui/argument-suggestions/complex.rs new file mode 100644 index 000000000..384cdca7e --- /dev/null +++ b/tests/ui/argument-suggestions/complex.rs @@ -0,0 +1,16 @@ +// A complex case with mixed suggestions from #65853 + +enum E { X, Y } +enum F { X2, Y2 } +struct G {} +struct H {} +struct X {} +struct Y {} +struct Z {} + +fn complex(_i: u32, _s: &str, _e: E, _f: F, _g: G, _x: X, _y: Y, _z: Z ) {} + +fn main() { + complex(1.0, H {}, &"", G{}, F::X2, Z {}, X {}, Y {}); + //~^ ERROR arguments to this function are incorrect +} |