1 2 3 4 5 6 7 8
extern crate libr; use libr::*; fn main() { let s = m::S { x: 42 }; assert_eq!(m::foo1(s), 42); assert_eq!(m::S::foo2(1), 1); }