about summary refs log tree commit diff
path: root/src/test/ui/resolve
diff options
context:
space:
mode:
authorMazdak Farrokhzad <twingoow@gmail.com>2019-08-10 08:13:25 +0200
committerGitHub <noreply@github.com>2019-08-10 08:13:25 +0200
commit019f6fed2855ff67adcf74176c16817c279e89de (patch)
treec3765064c4bae63df68e165a6ca406e6a2eedd85 /src/test/ui/resolve
parenta029ce80a6f17f34dbc268cc188ecce1142ab2d9 (diff)
parentb9865d9e3fdd87a5b7e45153effef3055d85f70e (diff)
Rollup merge of #63423 - estebank:priv-tuple, r=zackmdavis
Mention that tuple structs are private if any of their fields are

CC #39703
Diffstat (limited to 'src/test/ui/resolve')
-rw-r--r--src/test/ui/resolve/privacy-struct-ctor.stderr12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/test/ui/resolve/privacy-struct-ctor.stderr b/src/test/ui/resolve/privacy-struct-ctor.stderr
index 9bf7d191174..72d62fe45ce 100644
--- a/src/test/ui/resolve/privacy-struct-ctor.stderr
+++ b/src/test/ui/resolve/privacy-struct-ctor.stderr
@@ -34,36 +34,48 @@ error[E0603]: tuple struct `Z` is private
    |
 LL |         n::Z;
    |            ^
+   |
+   = note: a tuple struct constructor is private if any of its fields is private
 
 error[E0603]: tuple struct `S` is private
   --> $DIR/privacy-struct-ctor.rs:29:8
    |
 LL |     m::S;
    |        ^
+   |
+   = note: a tuple struct constructor is private if any of its fields is private
 
 error[E0603]: tuple struct `S` is private
   --> $DIR/privacy-struct-ctor.rs:31:19
    |
 LL |     let _: S = m::S(2);
    |                   ^
+   |
+   = note: a tuple struct constructor is private if any of its fields is private
 
 error[E0603]: tuple struct `Z` is private
   --> $DIR/privacy-struct-ctor.rs:35:11
    |
 LL |     m::n::Z;
    |           ^
+   |
+   = note: a tuple struct constructor is private if any of its fields is private
 
 error[E0603]: tuple struct `S` is private
   --> $DIR/privacy-struct-ctor.rs:41:16
    |
 LL |     xcrate::m::S;
    |                ^
+   |
+   = note: a tuple struct constructor is private if any of its fields is private
 
 error[E0603]: tuple struct `Z` is private
   --> $DIR/privacy-struct-ctor.rs:45:19
    |
 LL |     xcrate::m::n::Z;
    |                   ^
+   |
+   = note: a tuple struct constructor is private if any of its fields is private
 
 error: aborting due to 10 previous errors