2012-03-26 10:45:04 -07:00
|
|
|
// aux-build:cci_class.rs
|
2014-02-14 10:10:06 -08:00
|
|
|
extern crate cci_class;
|
2013-10-02 20:00:54 -07:00
|
|
|
use cci_class::kitties::cat;
|
2012-03-26 10:45:04 -07:00
|
|
|
|
|
|
|
fn main() {
|
2015-03-03 10:42:26 +02:00
|
|
|
let nyan : cat = cat(52, 99);
|
2015-06-07 21:00:38 +03:00
|
|
|
assert_eq!(nyan.meows, 52);
|
2020-09-02 10:40:56 +03:00
|
|
|
//~^ ERROR field `meows` of struct `cat` is private
|
2012-03-26 10:45:04 -07:00
|
|
|
}
|