File tree Expand file tree Collapse file tree 2 files changed +21
-1
lines changed
trunk/src/test/compile-fail Expand file tree Collapse file tree 2 files changed +21
-1
lines changed Original file line number Diff line number Diff line change 1
1
---
2
- refs/heads/master: a72283832d3e64fb09fd4e6243c22c72cccd8779
2
+ refs/heads/master: 2938d92a35dbb55dfbf444f92a73865a475733f1
3
3
refs/heads/snap-stage1: e33de59e47c5076a89eadeb38f4934f58a3618a6
4
4
refs/heads/snap-stage3: ba0e1cd8147d452c356aacb29fb87568ca26f111
5
5
refs/heads/try: 1864973ae17213c5a58c4dd3f9af6d1b6c7d2e05
Original file line number Diff line number Diff line change
1
+ // Regression test for issue #26083
2
+ // Test that span for public struct fields start at `pub` instead of the identifier
3
+
4
+ struct Foo {
5
+ pub bar : u8 ,
6
+
7
+ pub
8
+ //~^ error: field `bar` is already declared [E0124]
9
+ bar : u8 ,
10
+
11
+ pub bar :
12
+ //~^ error: field `bar` is already declared [E0124]
13
+ u8 ,
14
+
15
+ bar :
16
+ //~^ error: field `bar` is already declared [E0124]
17
+ u8 ,
18
+ }
19
+
20
+ fn main ( ) { }
You can’t perform that action at this time.
0 commit comments