added 'suggest-private-fields' cfail test

This commit is contained in:
Junseok Lee 2015-02-18 17:53:56 -08:00
parent 838595add0
commit 85069e0529

View file

@ -0,0 +1,13 @@
// aux-build:struct-field-privacy.rs
extern crate "struct-field-privacy" as xc;
use xc::B;
fn main () {
let k = B {
aa: 20, //~ ERROR structure `struct-field-privacy::B` has no field named `aa`
//~^ HELP did you mean `a`?
bb: 20, //~ ERROR structure `struct-field-privacy::B` has no field named `bb`
};
}