Skip to content

Commit e54ff8e

Browse files
committed
---
yaml --- r: 212654 b: refs/heads/tmp c: 2938d92 h: refs/heads/master v: v3
1 parent bc886fd commit e54ff8e

File tree

2 files changed

+21
-1
lines changed

2 files changed

+21
-1
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ refs/heads/building: 126db549b038c84269a1e4fe46f051b2c15d6970
3232
refs/heads/beta: 4efc4ec178f6ddf3c8cd268b011f3a04056f9d16
3333
refs/heads/windistfix: 7608dbad651f02e837ed05eef3d74a6662a6e928
3434
refs/tags/1.0.0-alpha: e42bd6d93a1d3433c486200587f8f9e12590a4d7
35-
refs/heads/tmp: a72283832d3e64fb09fd4e6243c22c72cccd8779
35+
refs/heads/tmp: 2938d92a35dbb55dfbf444f92a73865a475733f1
3636
refs/tags/1.0.0-alpha.2: 4c705f6bc559886632d3871b04f58aab093bfa2f
3737
refs/tags/homu-tmp: bea1c4a78e5233ea6f85a2028a26e08c26635fca
3838
refs/heads/gate: 97c84447b65164731087ea82685580cc81424412
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
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() { }

0 commit comments

Comments
 (0)