about summary refs log tree commit diff
path: root/src/test/ui/pattern
diff options
context:
space:
mode:
authorCamille GILLOT <gillot.camille@gmail.com>2022-04-09 18:15:35 +0200
committerCamille GILLOT <gillot.camille@gmail.com>2022-06-10 20:16:35 +0200
commit06af25e4f188946d9aba1c5f52ef7eec8fb29a45 (patch)
treec736ffe039d451ce50508ef58228f2544965ae27 /src/test/ui/pattern
parent871993f7a19794a01cd229a4a9810c1a0fc574f7 (diff)
downloadrust-06af25e4f188946d9aba1c5f52ef7eec8fb29a45.tar.gz
rust-06af25e4f188946d9aba1c5f52ef7eec8fb29a45.zip
Bless tests.
Diffstat (limited to 'src/test/ui/pattern')
-rw-r--r--src/test/ui/pattern/pat-tuple-field-count-cross.stderr176
1 files changed, 84 insertions, 92 deletions
diff --git a/src/test/ui/pattern/pat-tuple-field-count-cross.stderr b/src/test/ui/pattern/pat-tuple-field-count-cross.stderr
index cab8d4759df..07b678bc873 100644
--- a/src/test/ui/pattern/pat-tuple-field-count-cross.stderr
+++ b/src/test/ui/pattern/pat-tuple-field-count-cross.stderr
@@ -198,20 +198,19 @@ LL | pub struct S(pub u8, pub u8, pub u8);
 error[E0023]: this pattern has 0 fields, but the corresponding tuple struct has 3 fields
   --> $DIR/pat-tuple-field-count-cross.rs:24:9
    |
-LL |           M() => {}
-   |           ^^^ expected 3 fields, found 0
+LL |         M() => {}
+   |         ^^^ expected 3 fields, found 0
    |
-  ::: $DIR/auxiliary/declarations-for-tuple-field-count-errors.rs:5:1
+  ::: $DIR/auxiliary/declarations-for-tuple-field-count-errors.rs:5:12
    |
-LL | / pub struct M(
-LL | |     pub u8,
-   | |     ------
-LL | |     pub u8,
-   | |     ------
-LL | |     pub u8,
-   | |     ------ tuple struct has 3 fields
-LL | | );
-   | |__- tuple struct defined here
+LL | pub struct M(
+   |            - tuple struct defined here
+LL |     pub u8,
+   |     ------
+LL |     pub u8,
+   |     ------
+LL |     pub u8,
+   |     ------ tuple struct has 3 fields
    |
 help: use `_` to explicitly ignore each field
    |
@@ -225,20 +224,19 @@ LL |         M(..) => {}
 error[E0023]: this pattern has 1 field, but the corresponding tuple struct has 3 fields
   --> $DIR/pat-tuple-field-count-cross.rs:25:11
    |
-LL |           M(1) => {}
-   |             ^ expected 3 fields, found 1
+LL |         M(1) => {}
+   |           ^ expected 3 fields, found 1
    |
-  ::: $DIR/auxiliary/declarations-for-tuple-field-count-errors.rs:5:1
+  ::: $DIR/auxiliary/declarations-for-tuple-field-count-errors.rs:5:12
    |
-LL | / pub struct M(
-LL | |     pub u8,
-   | |     ------
-LL | |     pub u8,
-   | |     ------
-LL | |     pub u8,
-   | |     ------ tuple struct has 3 fields
-LL | | );
-   | |__- tuple struct defined here
+LL | pub struct M(
+   |            - tuple struct defined here
+LL |     pub u8,
+   |     ------
+LL |     pub u8,
+   |     ------
+LL |     pub u8,
+   |     ------ tuple struct has 3 fields
    |
 help: use `_` to explicitly ignore each field
    |
@@ -252,20 +250,19 @@ LL |         M(1, ..) => {}
 error[E0023]: this pattern has 2 fields, but the corresponding tuple struct has 3 fields
   --> $DIR/pat-tuple-field-count-cross.rs:26:11
    |
-LL |           M(xyz, abc) => {}
-   |             ^^^  ^^^ expected 3 fields, found 2
+LL |         M(xyz, abc) => {}
+   |           ^^^  ^^^ expected 3 fields, found 2
    |
-  ::: $DIR/auxiliary/declarations-for-tuple-field-count-errors.rs:5:1
+  ::: $DIR/auxiliary/declarations-for-tuple-field-count-errors.rs:5:12
    |
-LL | / pub struct M(
-LL | |     pub u8,
-   | |     ------
-LL | |     pub u8,
-   | |     ------
-LL | |     pub u8,
-   | |     ------ tuple struct has 3 fields
-LL | | );
-   | |__- tuple struct defined here
+LL | pub struct M(
+   |            - tuple struct defined here
+LL |     pub u8,
+   |     ------
+LL |     pub u8,
+   |     ------
+LL |     pub u8,
+   |     ------ tuple struct has 3 fields
    |
 help: use `_` to explicitly ignore each field
    |
@@ -275,20 +272,19 @@ LL |         M(xyz, abc, _) => {}
 error[E0023]: this pattern has 4 fields, but the corresponding tuple struct has 3 fields
   --> $DIR/pat-tuple-field-count-cross.rs:27:11
    |
-LL |           M(1, 2, 3, 4) => {}
-   |             ^  ^  ^  ^ expected 3 fields, found 4
+LL |         M(1, 2, 3, 4) => {}
+   |           ^  ^  ^  ^ expected 3 fields, found 4
    |
-  ::: $DIR/auxiliary/declarations-for-tuple-field-count-errors.rs:5:1
+  ::: $DIR/auxiliary/declarations-for-tuple-field-count-errors.rs:5:12
    |
-LL | / pub struct M(
-LL | |     pub u8,
-   | |     ------
-LL | |     pub u8,
-   | |     ------
-LL | |     pub u8,
-   | |     ------ tuple struct has 3 fields
-LL | | );
-   | |__- tuple struct defined here
+LL | pub struct M(
+   |            - tuple struct defined here
+LL |     pub u8,
+   |     ------
+LL |     pub u8,
+   |     ------
+LL |     pub u8,
+   |     ------ tuple struct has 3 fields
 
 error[E0023]: this pattern has 1 field, but the corresponding tuple variant has 0 fields
   --> $DIR/pat-tuple-field-count-cross.rs:36:16
@@ -438,20 +434,19 @@ LL |     S(u8, u8, u8),
 error[E0023]: this pattern has 0 fields, but the corresponding tuple variant has 3 fields
   --> $DIR/pat-tuple-field-count-cross.rs:52:9
    |
-LL |           E2::M() => {}
-   |           ^^^^^^^ expected 3 fields, found 0
+LL |         E2::M() => {}
+   |         ^^^^^^^ expected 3 fields, found 0
    |
   ::: $DIR/auxiliary/declarations-for-tuple-field-count-errors.rs:15:5
    |
-LL | /     M(
-LL | |         u8,
-   | |         --
-LL | |         u8,
-   | |         --
-LL | |         u8,
-   | |         -- tuple variant has 3 fields
-LL | |     ),
-   | |_____- tuple variant defined here
+LL |     M(
+   |     - tuple variant defined here
+LL |         u8,
+   |         --
+LL |         u8,
+   |         --
+LL |         u8,
+   |         -- tuple variant has 3 fields
    |
 help: use `_` to explicitly ignore each field
    |
@@ -465,20 +460,19 @@ LL |         E2::M(..) => {}
 error[E0023]: this pattern has 1 field, but the corresponding tuple variant has 3 fields
   --> $DIR/pat-tuple-field-count-cross.rs:53:15
    |
-LL |           E2::M(1) => {}
-   |                 ^ expected 3 fields, found 1
+LL |         E2::M(1) => {}
+   |               ^ expected 3 fields, found 1
    |
   ::: $DIR/auxiliary/declarations-for-tuple-field-count-errors.rs:15:5
    |
-LL | /     M(
-LL | |         u8,
-   | |         --
-LL | |         u8,
-   | |         --
-LL | |         u8,
-   | |         -- tuple variant has 3 fields
-LL | |     ),
-   | |_____- tuple variant defined here
+LL |     M(
+   |     - tuple variant defined here
+LL |         u8,
+   |         --
+LL |         u8,
+   |         --
+LL |         u8,
+   |         -- tuple variant has 3 fields
    |
 help: use `_` to explicitly ignore each field
    |
@@ -492,20 +486,19 @@ LL |         E2::M(1, ..) => {}
 error[E0023]: this pattern has 2 fields, but the corresponding tuple variant has 3 fields
   --> $DIR/pat-tuple-field-count-cross.rs:54:15
    |
-LL |           E2::M(xyz, abc) => {}
-   |                 ^^^  ^^^ expected 3 fields, found 2
+LL |         E2::M(xyz, abc) => {}
+   |               ^^^  ^^^ expected 3 fields, found 2
    |
   ::: $DIR/auxiliary/declarations-for-tuple-field-count-errors.rs:15:5
    |
-LL | /     M(
-LL | |         u8,
-   | |         --
-LL | |         u8,
-   | |         --
-LL | |         u8,
-   | |         -- tuple variant has 3 fields
-LL | |     ),
-   | |_____- tuple variant defined here
+LL |     M(
+   |     - tuple variant defined here
+LL |         u8,
+   |         --
+LL |         u8,
+   |         --
+LL |         u8,
+   |         -- tuple variant has 3 fields
    |
 help: use `_` to explicitly ignore each field
    |
@@ -515,20 +508,19 @@ LL |         E2::M(xyz, abc, _) => {}
 error[E0023]: this pattern has 4 fields, but the corresponding tuple variant has 3 fields
   --> $DIR/pat-tuple-field-count-cross.rs:55:15
    |
-LL |           E2::M(1, 2, 3, 4) => {}
-   |                 ^  ^  ^  ^ expected 3 fields, found 4
+LL |         E2::M(1, 2, 3, 4) => {}
+   |               ^  ^  ^  ^ expected 3 fields, found 4
    |
   ::: $DIR/auxiliary/declarations-for-tuple-field-count-errors.rs:15:5
    |
-LL | /     M(
-LL | |         u8,
-   | |         --
-LL | |         u8,
-   | |         --
-LL | |         u8,
-   | |         -- tuple variant has 3 fields
-LL | |     ),
-   | |_____- tuple variant defined here
+LL |     M(
+   |     - tuple variant defined here
+LL |         u8,
+   |         --
+LL |         u8,
+   |         --
+LL |         u8,
+   |         -- tuple variant has 3 fields
 
 error: aborting due to 28 previous errors