summaryrefslogtreecommitdiffstats
path: root/src/test/ui/pattern/pat-tuple-underfield.stderr
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-17 12:19:13 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-17 12:19:13 +0000
commit218caa410aa38c29984be31a5229b9fa717560ee (patch)
treec54bd55eeb6e4c508940a30e94c0032fbd45d677 /src/test/ui/pattern/pat-tuple-underfield.stderr
parentReleasing progress-linux version 1.67.1+dfsg1-1~progress7.99u1. (diff)
downloadrustc-218caa410aa38c29984be31a5229b9fa717560ee.tar.xz
rustc-218caa410aa38c29984be31a5229b9fa717560ee.zip
Merging upstream version 1.68.2+dfsg1.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'src/test/ui/pattern/pat-tuple-underfield.stderr')
-rw-r--r--src/test/ui/pattern/pat-tuple-underfield.stderr167
1 files changed, 0 insertions, 167 deletions
diff --git a/src/test/ui/pattern/pat-tuple-underfield.stderr b/src/test/ui/pattern/pat-tuple-underfield.stderr
deleted file mode 100644
index e75f9b38d..000000000
--- a/src/test/ui/pattern/pat-tuple-underfield.stderr
+++ /dev/null
@@ -1,167 +0,0 @@
-error[E0532]: expected unit struct, unit variant or constant, found tuple variant `E::S`
- --> $DIR/pat-tuple-underfield.rs:56:9
- |
-LL | S(i32, f32),
- | ----------- `E::S` defined here
-...
-LL | E::S => {}
- | ^^^^ help: use the tuple variant pattern syntax instead: `E::S(_, _)`
-
-error[E0023]: this pattern has 1 field, but the corresponding tuple struct has 2 fields
- --> $DIR/pat-tuple-underfield.rs:9:11
- |
-LL | struct S(i32, f32);
- | --- --- tuple struct has 2 fields
-...
-LL | S(x) => {}
- | ^ expected 2 fields, found 1
- |
-help: use `_` to explicitly ignore each field
- |
-LL | S(x, _) => {}
- | +++
-
-error[E0023]: this pattern has 1 field, but the corresponding tuple struct has 2 fields
- --> $DIR/pat-tuple-underfield.rs:14:11
- |
-LL | struct S(i32, f32);
- | --- --- tuple struct has 2 fields
-...
-LL | S(_) => {}
- | ^ expected 2 fields, found 1
- |
-help: use `_` to explicitly ignore each field
- |
-LL | S(_, _) => {}
- | +++
-help: use `..` to ignore all fields
- |
-LL | S(..) => {}
- | ~~
-
-error[E0023]: this pattern has 0 fields, but the corresponding tuple struct has 2 fields
- --> $DIR/pat-tuple-underfield.rs:20:9
- |
-LL | struct S(i32, f32);
- | --- --- tuple struct has 2 fields
-...
-LL | S() => {}
- | ^^^ expected 2 fields, found 0
- |
-help: use `_` to explicitly ignore each field
- |
-LL | S(_, _) => {}
- | ++++
-help: use `..` to ignore all fields
- |
-LL | S(..) => {}
- | ++
-
-error[E0023]: this pattern has 0 fields, but the corresponding tuple struct has 2 fields
- --> $DIR/pat-tuple-underfield.rs:26:9
- |
-LL | struct S(i32, f32);
- | --- --- tuple struct has 2 fields
-...
-LL | S () => {}
- | ^^^^ expected 2 fields, found 0
- |
-help: use `_` to explicitly ignore each field
- |
-LL | S (_, _) => {}
- | ++++
-help: use `..` to ignore all fields
- |
-LL | S (..) => {}
- | ++
-
-error[E0023]: this pattern has 1 field, but the corresponding tuple variant has 2 fields
- --> $DIR/pat-tuple-underfield.rs:33:14
- |
-LL | S(i32, f32),
- | --- --- tuple variant has 2 fields
-...
-LL | E::S(x) => {}
- | ^ expected 2 fields, found 1
- |
-help: use `_` to explicitly ignore each field
- |
-LL | E::S(x, _) => {}
- | +++
-
-error[E0023]: this pattern has 1 field, but the corresponding tuple variant has 2 fields
- --> $DIR/pat-tuple-underfield.rs:38:14
- |
-LL | S(i32, f32),
- | --- --- tuple variant has 2 fields
-...
-LL | E::S(_) => {}
- | ^ expected 2 fields, found 1
- |
-help: use `_` to explicitly ignore each field
- |
-LL | E::S(_, _) => {}
- | +++
-help: use `..` to ignore all fields
- |
-LL | E::S(..) => {}
- | ~~
-
-error[E0023]: this pattern has 0 fields, but the corresponding tuple variant has 2 fields
- --> $DIR/pat-tuple-underfield.rs:44:9
- |
-LL | S(i32, f32),
- | --- --- tuple variant has 2 fields
-...
-LL | E::S() => {}
- | ^^^^^^ expected 2 fields, found 0
- |
-help: use `_` to explicitly ignore each field
- |
-LL | E::S(_, _) => {}
- | ++++
-help: use `..` to ignore all fields
- |
-LL | E::S(..) => {}
- | ++
-
-error[E0023]: this pattern has 0 fields, but the corresponding tuple variant has 2 fields
- --> $DIR/pat-tuple-underfield.rs:50:9
- |
-LL | S(i32, f32),
- | --- --- tuple variant has 2 fields
-...
-LL | E::S () => {}
- | ^^^^^^^ expected 2 fields, found 0
- |
-help: use `_` to explicitly ignore each field
- |
-LL | E::S (_, _) => {}
- | ++++
-help: use `..` to ignore all fields
- |
-LL | E::S (..) => {}
- | ++
-
-error[E0023]: this pattern has 2 fields, but the corresponding tuple struct has 4 fields
- --> $DIR/pat-tuple-underfield.rs:62:19
- |
-LL | struct Point4(i32, i32, i32, i32);
- | --- --- --- --- tuple struct has 4 fields
-...
-LL | Point4( a , _ ) => {}
- | ^ ^ expected 4 fields, found 2
- |
-help: use `_` to explicitly ignore each field
- |
-LL | Point4( a , _ , _, _) => {}
- | ++++++
-help: use `..` to ignore the rest of the fields
- |
-LL | Point4( a, ..) => {}
- | ~~~~
-
-error: aborting due to 10 previous errors
-
-Some errors have detailed explanations: E0023, E0532.
-For more information about an error, try `rustc --explain E0023`.