mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-26 00:34:06 +00:00
10 lines
211 B
Rust
10 lines
211 B
Rust
//@ aux-build:cci_class.rs
|
|
extern crate cci_class;
|
|
use cci_class::kitties::cat;
|
|
|
|
fn main() {
|
|
let nyan : cat = cat(52, 99);
|
|
assert_eq!(nyan.meows, 52);
|
|
//~^ ERROR field `meows` of struct `cat` is private
|
|
}
|