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/self/issue-61882.stderr | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 tests/ui/self/issue-61882.stderr (limited to 'tests/ui/self/issue-61882.stderr') diff --git a/tests/ui/self/issue-61882.stderr b/tests/ui/self/issue-61882.stderr new file mode 100644 index 000000000..dd7194dc2 --- /dev/null +++ b/tests/ui/self/issue-61882.stderr @@ -0,0 +1,26 @@ +error[E0308]: mismatched types + --> $DIR/issue-61882.rs:4:27 + | +LL | const B: A = Self(0); + | ---- ^ expected `bool`, found integer + | | + | arguments to this function are incorrect + | +note: tuple struct defined here + --> $DIR/issue-61882.rs:1:8 + | +LL | struct A(T); + | ^ + +error[E0308]: mismatched types + --> $DIR/issue-61882.rs:4:22 + | +LL | const B: A = Self(0); + | ^^^^^^^ expected `u8`, found `bool` + | + = note: expected struct `A` + found struct `A` + +error: aborting due to 2 previous errors + +For more information about this error, try `rustc --explain E0308`. -- cgit v1.2.3