diff options
| author | Dylan DPC <dylan.dpc@gmail.com> | 2020-01-17 11:16:36 +0530 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-01-17 11:16:36 +0530 |
| commit | ecf42a3d624b859bcfeffc1c454ebd964eac0422 (patch) | |
| tree | a80dc55bfb1493c8b2d783c951d3680bdbfa77fc /src/test/ui/error-codes | |
| parent | 9f4b328da2b9852df6f940a6695a36bd27bbdd32 (diff) | |
| parent | 0b60f1f2ae54b0bdb1623606db5dd18da1e80517 (diff) | |
| download | rust-ecf42a3d624b859bcfeffc1c454ebd964eac0422.tar.gz rust-ecf42a3d624b859bcfeffc1c454ebd964eac0422.zip | |
Rollup merge of #68153 - petrochenkov:privdiag, r=estebank
resolve: Point at the private item definitions in privacy errors A basic version of https://github.com/rust-lang/rust/pull/67951. r? @estebank
Diffstat (limited to 'src/test/ui/error-codes')
| -rw-r--r-- | src/test/ui/error-codes/E0603.stderr | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/src/test/ui/error-codes/E0603.stderr b/src/test/ui/error-codes/E0603.stderr index 444005e086f..724d04954a3 100644 --- a/src/test/ui/error-codes/E0603.stderr +++ b/src/test/ui/error-codes/E0603.stderr @@ -2,7 +2,13 @@ error[E0603]: constant `PRIVATE` is private --> $DIR/E0603.rs:6:17 | LL | SomeModule::PRIVATE; - | ^^^^^^^ + | ^^^^^^^ this constant is private + | +note: the constant `PRIVATE` is defined here + --> $DIR/E0603.rs:2:5 + | +LL | const PRIVATE: u32 = 0x_a_bad_1dea_u32; + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ error: aborting due to previous error |
