about summary refs log tree commit diff
path: root/src/test/ui/tuple/tuple-struct-fields
diff options
context:
space:
mode:
authorVadim Petrochenkov <vadim.petrochenkov@gmail.com>2020-01-08 20:02:10 +0300
committerVadim Petrochenkov <vadim.petrochenkov@gmail.com>2020-01-09 21:23:12 +0300
commit642669c74d97b79a9a9f7300dfac3bb86bb75d97 (patch)
tree4a1e418219e538592050960fd7bdf806802aa84b /src/test/ui/tuple/tuple-struct-fields
parent41318e9a267024fb36162382e26944d235aa71cd (diff)
downloadrust-642669c74d97b79a9a9f7300dfac3bb86bb75d97.tar.gz
rust-642669c74d97b79a9a9f7300dfac3bb86bb75d97.zip
Update tests
Diffstat (limited to 'src/test/ui/tuple/tuple-struct-fields')
-rw-r--r--src/test/ui/tuple/tuple-struct-fields/test2.rs1
-rw-r--r--src/test/ui/tuple/tuple-struct-fields/test2.stderr8
-rw-r--r--src/test/ui/tuple/tuple-struct-fields/test3.rs1
-rw-r--r--src/test/ui/tuple/tuple-struct-fields/test3.stderr8
4 files changed, 16 insertions, 2 deletions
diff --git a/src/test/ui/tuple/tuple-struct-fields/test2.rs b/src/test/ui/tuple/tuple-struct-fields/test2.rs
index fc0f78b12c9..2b2a2c127e9 100644
--- a/src/test/ui/tuple/tuple-struct-fields/test2.rs
+++ b/src/test/ui/tuple/tuple-struct-fields/test2.rs
@@ -9,6 +9,7 @@ macro_rules! define_struct {
 
 mod foo {
     define_struct! { (foo) } //~ ERROR cannot find type `foo` in this scope
+                             //~| ERROR cannot find type `foo` in this scope
 }
 
 fn main() {}
diff --git a/src/test/ui/tuple/tuple-struct-fields/test2.stderr b/src/test/ui/tuple/tuple-struct-fields/test2.stderr
index d924c351439..2f1ca2fe0c1 100644
--- a/src/test/ui/tuple/tuple-struct-fields/test2.stderr
+++ b/src/test/ui/tuple/tuple-struct-fields/test2.stderr
@@ -15,6 +15,12 @@ error[E0412]: cannot find type `foo` in this scope
 LL |     define_struct! { (foo) }
    |                       ^^^ not found in this scope
 
-error: aborting due to 2 previous errors
+error[E0412]: cannot find type `foo` in this scope
+  --> $DIR/test2.rs:11:23
+   |
+LL |     define_struct! { (foo) }
+   |                       ^^^ not found in this scope
+
+error: aborting due to 3 previous errors
 
 For more information about this error, try `rustc --explain E0412`.
diff --git a/src/test/ui/tuple/tuple-struct-fields/test3.rs b/src/test/ui/tuple/tuple-struct-fields/test3.rs
index 6b8534b4524..98d19426e77 100644
--- a/src/test/ui/tuple/tuple-struct-fields/test3.rs
+++ b/src/test/ui/tuple/tuple-struct-fields/test3.rs
@@ -9,6 +9,7 @@ macro_rules! define_struct {
 
 mod foo {
     define_struct! { foo } //~ ERROR cannot find type `foo` in this scope
+                           //~| ERROR cannot find type `foo` in this scope
 }
 
 fn main() {}
diff --git a/src/test/ui/tuple/tuple-struct-fields/test3.stderr b/src/test/ui/tuple/tuple-struct-fields/test3.stderr
index 50cac6c179e..5d42fe6ef50 100644
--- a/src/test/ui/tuple/tuple-struct-fields/test3.stderr
+++ b/src/test/ui/tuple/tuple-struct-fields/test3.stderr
@@ -15,6 +15,12 @@ error[E0412]: cannot find type `foo` in this scope
 LL |     define_struct! { foo }
    |                      ^^^ not found in this scope
 
-error: aborting due to 2 previous errors
+error[E0412]: cannot find type `foo` in this scope
+  --> $DIR/test3.rs:11:22
+   |
+LL |     define_struct! { foo }
+   |                      ^^^ not found in this scope
+
+error: aborting due to 3 previous errors
 
 For more information about this error, try `rustc --explain E0412`.