mirror of
https://github.com/rust-lang/rust.git
synced 2024-10-31 22:41:50 +00:00
17 lines
414 B
Rust
17 lines
414 B
Rust
// run-pass
|
|
// aux-build:reexported_static_methods.rs
|
|
|
|
extern crate reexported_static_methods;
|
|
|
|
use reexported_static_methods::Foo;
|
|
use reexported_static_methods::Baz;
|
|
use reexported_static_methods::Boz;
|
|
use reexported_static_methods::Bort;
|
|
|
|
pub fn main() {
|
|
assert_eq!(42_isize, Foo::foo());
|
|
assert_eq!(84_isize, Baz::bar());
|
|
assert!(Boz::boz(1));
|
|
assert_eq!("bort()".to_string(), Bort::bort());
|
|
}
|