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/tuple/tuple-index-not-tuple.stderr | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 tests/ui/tuple/tuple-index-not-tuple.stderr (limited to 'tests/ui/tuple/tuple-index-not-tuple.stderr') diff --git a/tests/ui/tuple/tuple-index-not-tuple.stderr b/tests/ui/tuple/tuple-index-not-tuple.stderr new file mode 100644 index 000000000..a1bcdfaed --- /dev/null +++ b/tests/ui/tuple/tuple-index-not-tuple.stderr @@ -0,0 +1,15 @@ +error[E0609]: no field `0` on type `Point` + --> $DIR/tuple-index-not-tuple.rs:6:12 + | +LL | origin.0; + | ^ help: a field with a similar name exists: `x` + +error[E0609]: no field `0` on type `Empty` + --> $DIR/tuple-index-not-tuple.rs:8:11 + | +LL | Empty.0; + | ^ unknown field + +error: aborting due to 2 previous errors + +For more information about this error, try `rustc --explain E0609`. -- cgit v1.2.3