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/empty/empty-struct-braces-pat-3.stderr | 27 +++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 tests/ui/empty/empty-struct-braces-pat-3.stderr (limited to 'tests/ui/empty/empty-struct-braces-pat-3.stderr') diff --git a/tests/ui/empty/empty-struct-braces-pat-3.stderr b/tests/ui/empty/empty-struct-braces-pat-3.stderr new file mode 100644 index 000000000..00c8b12e6 --- /dev/null +++ b/tests/ui/empty/empty-struct-braces-pat-3.stderr @@ -0,0 +1,27 @@ +error[E0164]: expected tuple struct or tuple variant, found struct variant `E::Empty3` + --> $DIR/empty-struct-braces-pat-3.rs:17:9 + | +LL | E::Empty3() => () + | ^^^^^^^^^^^ not a tuple struct or tuple variant + +error[E0164]: expected tuple struct or tuple variant, found struct variant `XE::XEmpty3` + --> $DIR/empty-struct-braces-pat-3.rs:21:9 + | +LL | XE::XEmpty3() => () + | ^^^^^^^^^^^^^ not a tuple struct or tuple variant + +error[E0164]: expected tuple struct or tuple variant, found struct variant `E::Empty3` + --> $DIR/empty-struct-braces-pat-3.rs:25:9 + | +LL | E::Empty3(..) => () + | ^^^^^^^^^^^^^ not a tuple struct or tuple variant + +error[E0164]: expected tuple struct or tuple variant, found struct variant `XE::XEmpty3` + --> $DIR/empty-struct-braces-pat-3.rs:29:9 + | +LL | XE::XEmpty3(..) => () + | ^^^^^^^^^^^^^^^ not a tuple struct or tuple variant + +error: aborting due to 4 previous errors + +For more information about this error, try `rustc --explain E0164`. -- cgit v1.2.3