diff options
| author | Vadim Petrochenkov <vadim.petrochenkov@gmail.com> | 2020-01-12 16:04:03 +0300 |
|---|---|---|
| committer | Vadim Petrochenkov <vadim.petrochenkov@gmail.com> | 2020-01-16 21:59:11 +0300 |
| commit | 28c3f6eb409596be9c0c0a59dc1c26e216d9e57a (patch) | |
| tree | dd96f56468188a07a098129f3c3bdc10d91a05fe /src/test/ui/static | |
| parent | 0f70daa9b06882d7fb684a60160e4949d2861136 (diff) | |
| download | rust-28c3f6eb409596be9c0c0a59dc1c26e216d9e57a.tar.gz rust-28c3f6eb409596be9c0c0a59dc1c26e216d9e57a.zip | |
resolve: Point at the private item definitions in privacy errors
Diffstat (limited to 'src/test/ui/static')
| -rw-r--r-- | src/test/ui/static/static-priv-by-default2.stderr | 16 |
1 files changed, 14 insertions, 2 deletions
diff --git a/src/test/ui/static/static-priv-by-default2.stderr b/src/test/ui/static/static-priv-by-default2.stderr index 95bcf076335..f6cd40412dd 100644 --- a/src/test/ui/static/static-priv-by-default2.stderr +++ b/src/test/ui/static/static-priv-by-default2.stderr @@ -2,13 +2,25 @@ error[E0603]: static `private` is private --> $DIR/static-priv-by-default2.rs:15:30 | LL | use child::childs_child::private; - | ^^^^^^^ + | ^^^^^^^ this static is private + | +note: the static `private` is defined here + --> $DIR/static-priv-by-default2.rs:7:9 + | +LL | static private: isize = 0; + | ^^^^^^^^^^^^^^^^^^^^^^^^^^ error[E0603]: static `private` is private --> $DIR/static-priv-by-default2.rs:23:33 | LL | use static_priv_by_default::private; - | ^^^^^^^ + | ^^^^^^^ this static is private + | +note: the static `private` is defined here + --> $DIR/auxiliary/static_priv_by_default.rs:3:1 + | +LL | static private: isize = 0; + | ^^^^^^^^^^^^^^^^^^^^^^^^^^ error: aborting due to 2 previous errors |
