Skip to content

Commit 85069e0

Browse files
author
Junseok Lee
committed
added 'suggest-private-fields' cfail test
1 parent 838595a commit 85069e0

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
// aux-build:struct-field-privacy.rs
2+
3+
extern crate "struct-field-privacy" as xc;
4+
5+
use xc::B;
6+
7+
fn main () {
8+
let k = B {
9+
aa: 20, //~ ERROR structure `struct-field-privacy::B` has no field named `aa`
10+
//~^ HELP did you mean `a`?
11+
bb: 20, //~ ERROR structure `struct-field-privacy::B` has no field named `bb`
12+
};
13+
}

0 commit comments

Comments
 (0)