Skip to content

Commit ded0ec7

Browse files
committed
---
yaml --- r: 225607 b: refs/heads/stable c: 2938d92 h: refs/heads/master i: 225605: 78f98a0 225603: 05db291 225599: 857a6c1 v: v3
1 parent 0ec1573 commit ded0ec7

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
@@ -29,6 +29,6 @@ refs/heads/tmp: e5d90d98402475b6e154ce216f9efcb80da1a747
2929
refs/tags/1.0.0-alpha.2: 4c705f6bc559886632d3871b04f58aab093bfa2f
3030
refs/tags/homu-tmp: 1fe32ca12c51afcd761d9962f51a74ff0d07a591
3131
refs/tags/1.0.0-beta: 8cbb92b53468ee2b0c2d3eeb8567005953d40828
32-
refs/heads/stable: a72283832d3e64fb09fd4e6243c22c72cccd8779
32+
refs/heads/stable: 2938d92a35dbb55dfbf444f92a73865a475733f1
3333
refs/tags/1.0.0: 55bd4f8ff2b323f317ae89e254ce87162d52a375
3434
refs/tags/1.1.0: bc3c16f09287e5545c1d3f76b7abd54f2eca868b
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)