2018-08-30 14:18:55 +02:00
|
|
|
// run-pass
|
2018-08-31 15:02:01 +02:00
|
|
|
#![allow(non_camel_case_types)]
|
|
|
|
|
2012-10-18 13:29:34 -07:00
|
|
|
// aux-build:anon_trait_static_method_lib.rs
|
|
|
|
|
2014-02-14 10:10:06 -08:00
|
|
|
extern crate anon_trait_static_method_lib;
|
2012-10-18 13:29:34 -07:00
|
|
|
use anon_trait_static_method_lib::Foo;
|
|
|
|
|
2013-02-01 19:43:17 -08:00
|
|
|
pub fn main() {
|
2012-10-18 13:29:34 -07:00
|
|
|
let x = Foo::new();
|
2014-01-09 21:06:55 +11:00
|
|
|
println!("{}", x.x);
|
2012-10-18 13:29:34 -07:00
|
|
|
}
|