From 218caa410aa38c29984be31a5229b9fa717560ee Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Wed, 17 Apr 2024 14:19:13 +0200 Subject: Merging upstream version 1.68.2+dfsg1. Signed-off-by: Daniel Baumann --- tests/ui/traits/multidispatch-bad.stderr | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 tests/ui/traits/multidispatch-bad.stderr (limited to 'tests/ui/traits/multidispatch-bad.stderr') diff --git a/tests/ui/traits/multidispatch-bad.stderr b/tests/ui/traits/multidispatch-bad.stderr new file mode 100644 index 000000000..d58f1e2d9 --- /dev/null +++ b/tests/ui/traits/multidispatch-bad.stderr @@ -0,0 +1,21 @@ +error[E0308]: mismatched types + --> $DIR/multidispatch-bad.rs:19:17 + | +LL | test(22i32, 44i32); + | ---- ^^^^^ expected `u32`, found `i32` + | | + | arguments to this function are incorrect + | +note: function defined here + --> $DIR/multidispatch-bad.rs:13:4 + | +LL | fn test(_: T, _: U) + | ^^^^ ---- +help: change the type of the numeric literal from `i32` to `u32` + | +LL | test(22i32, 44u32); + | ~~~ + +error: aborting due to previous error + +For more information about this error, try `rustc --explain E0308`. -- cgit v1.2.3