diff options
| author | bors <bors@rust-lang.org> | 2019-10-10 19:40:48 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2019-10-10 19:40:48 +0000 |
| commit | 898f36c83cc28d7921a1d7b3605323dc5cfcf533 (patch) | |
| tree | a961ad741aa7a3be0c83f31ee8693234fcab6fb4 /src/test/ui/lint/lint-lowercase-static-const-pattern.stderr | |
| parent | 58b54911fabcd1b328fab78014b6833a4e8cfaa3 (diff) | |
| parent | 48f8beddd8e28a5bbdf1334f2c1de402196fa7f1 (diff) | |
| download | rust-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
