forked from rust-lang/rust
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Rollup merge of rust-lang#35491 - sanxiyn:pub-restricted-span, r=niko…
…matsakis Correct span for pub_restricted field Fix rust-lang#35435.
- Loading branch information
Showing
3 changed files
with
37 additions
and
25 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
error[E0124]: field `bar` is already declared | ||
--> $DIR/pub-struct-field.rs:18:5 | ||
| | ||
17 | bar: u8, | ||
| ------- `bar` first declared here | ||
18 | pub bar: u8, | ||
| ^^^^^^^^^^^ field already declared | ||
|
||
error[E0124]: field `bar` is already declared | ||
--> $DIR/pub-struct-field.rs:19:5 | ||
| | ||
17 | bar: u8, | ||
| ------- `bar` first declared here | ||
18 | pub bar: u8, | ||
19 | pub(crate) bar: u8, | ||
| ^^^^^^^^^^^^^^^^^^ field already declared | ||
|
||
error: aborting due to 2 previous errors | ||
|