name struct in "field ...
is private" error
This commit is contained in:
parent
9539be6d74
commit
d4b73a7411
10 changed files with 135 additions and 38 deletions
|
@ -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
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue