about summary refs log tree commit diff
path: root/src/test/ui/lint/lint-lowercase-static-const-pattern.stderr
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2019-10-10 19:40:48 +0000
committerbors <bors@rust-lang.org>2019-10-10 19:40:48 +0000
commit898f36c83cc28d7921a1d7b3605323dc5cfcf533 (patch)
treea961ad741aa7a3be0c83f31ee8693234fcab6fb4 /src/test/ui/lint/lint-lowercase-static-const-pattern.stderr
parent58b54911fabcd1b328fab78014b6833a4e8cfaa3 (diff)
parent48f8beddd8e28a5bbdf1334f2c1de402196fa7f1 (diff)
downloadrust-898f36c83cc28d7921a1d7b3605323dc5cfcf533.tar.gz
rust-898f36c83cc28d7921a1d7b3605323dc5cfcf533.zip
Auto merge of #65153 - da-x:issue-58017, r=petrochenkov
Improve message when attempting to instantiate tuple structs with private fields

Fixes #58017, fixes #39703.

```
error[E0603]: tuple struct `Error` is private
  --> main.rs:22:16
   |
2  |     pub struct Error(usize, pub usize, usize);
   |                      -----             ----- field is private
   |                      |
   |                      field is private
...
22 |     let x = a::Error(3, 1, 2);
   |                ^^^^^
   |
   = note: a tuple struct constructor is private if any of its fields is private
```
Diffstat (limited to 'src/test/ui/lint/lint-lowercase-static-const-pattern.stderr')
0 files changed, 0 insertions, 0 deletions