rust/tests/ui/cross-crate/reexported-static-methods-cross-crate.rs
2024-02-16 20:02:50 +00:00

17 lines
416 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());
}