From 698f8c2f01ea549d77d7dc3338a12e04c11057b9 Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Wed, 17 Apr 2024 14:02:58 +0200 Subject: Adding upstream version 1.64.0+dfsg1. Signed-off-by: Daniel Baumann --- src/test/ui/traits/multidispatch-bad.stderr | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 src/test/ui/traits/multidispatch-bad.stderr (limited to 'src/test/ui/traits/multidispatch-bad.stderr') diff --git a/src/test/ui/traits/multidispatch-bad.stderr b/src/test/ui/traits/multidispatch-bad.stderr new file mode 100644 index 000000000..8b6e61006 --- /dev/null +++ b/src/test/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