mirror of
https://github.com/rust-lang/rust.git
synced 2025-11-24 12:47:30 +00:00
9 lines
141 B
Rust
9 lines
141 B
Rust
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);
|
|
}
|