File tree Expand file tree Collapse file tree 2 files changed +21
-1
lines changed
branches/stable/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 @@ -29,6 +29,6 @@ refs/heads/tmp: e5d90d98402475b6e154ce216f9efcb80da1a747
29
29
refs/tags/1.0.0-alpha.2: 4c705f6bc559886632d3871b04f58aab093bfa2f
30
30
refs/tags/homu-tmp: 1fe32ca12c51afcd761d9962f51a74ff0d07a591
31
31
refs/tags/1.0.0-beta: 8cbb92b53468ee2b0c2d3eeb8567005953d40828
32
- refs/heads/stable: a72283832d3e64fb09fd4e6243c22c72cccd8779
32
+ refs/heads/stable: 2938d92a35dbb55dfbf444f92a73865a475733f1
33
33
refs/tags/1.0.0: 55bd4f8ff2b323f317ae89e254ce87162d52a375
34
34
refs/tags/1.1.0: bc3c16f09287e5545c1d3f76b7abd54f2eca868b
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