File tree Expand file tree Collapse file tree 2 files changed +21
-1
lines changed
branches/tmp/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 @@ -32,7 +32,7 @@ refs/heads/building: 126db549b038c84269a1e4fe46f051b2c15d6970
32
32
refs/heads/beta: 4efc4ec178f6ddf3c8cd268b011f3a04056f9d16
33
33
refs/heads/windistfix: 7608dbad651f02e837ed05eef3d74a6662a6e928
34
34
refs/tags/1.0.0-alpha: e42bd6d93a1d3433c486200587f8f9e12590a4d7
35
- refs/heads/tmp: a72283832d3e64fb09fd4e6243c22c72cccd8779
35
+ refs/heads/tmp: 2938d92a35dbb55dfbf444f92a73865a475733f1
36
36
refs/tags/1.0.0-alpha.2: 4c705f6bc559886632d3871b04f58aab093bfa2f
37
37
refs/tags/homu-tmp: bea1c4a78e5233ea6f85a2028a26e08c26635fca
38
38
refs/heads/gate: 97c84447b65164731087ea82685580cc81424412
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