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/consts/issue-70942-trait-vs-impl-mismatch.stderr | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 tests/ui/consts/issue-70942-trait-vs-impl-mismatch.stderr (limited to 'tests/ui/consts/issue-70942-trait-vs-impl-mismatch.stderr') diff --git a/tests/ui/consts/issue-70942-trait-vs-impl-mismatch.stderr b/tests/ui/consts/issue-70942-trait-vs-impl-mismatch.stderr new file mode 100644 index 000000000..1597120fb --- /dev/null +++ b/tests/ui/consts/issue-70942-trait-vs-impl-mismatch.stderr @@ -0,0 +1,15 @@ +error[E0326]: implemented const `VALUE` has an incompatible type for trait + --> $DIR/issue-70942-trait-vs-impl-mismatch.rs:8:18 + | +LL | const VALUE: i32 = 0; + | ^^^ expected `usize`, found `i32` + | +note: type in trait + --> $DIR/issue-70942-trait-vs-impl-mismatch.rs:2:18 + | +LL | const VALUE: usize; + | ^^^^^ + +error: aborting due to previous error + +For more information about this error, try `rustc --explain E0326`. -- cgit v1.2.3