1
Fork 0

name struct in "field ... is private" error

This commit is contained in:
Benjamin Herr 2014-04-05 19:28:01 +02:00
parent 9539be6d74
commit d4b73a7411
10 changed files with 135 additions and 38 deletions

View file

@ -20,5 +20,5 @@ mod cat {
fn main() {
let nyan = cat::new_cat();
assert!(nyan.meows == 52); //~ ERROR field `meows` is private
assert!(nyan.meows == 52); //~ ERROR field `meows` of struct `cat::Cat` is private
}