2018-08-30 14:18:55 +02:00
|
|
|
// run-pass
|
2013-06-01 02:54:39 -07:00
|
|
|
// aux-build:reexported_static_methods.rs
|
2015-03-22 13:13:15 -07:00
|
|
|
|
2014-02-14 10:10:06 -08:00
|
|
|
extern crate reexported_static_methods;
|
2013-05-10 21:33:58 -07:00
|
|
|
|
2013-06-01 02:54:39 -07:00
|
|
|
use reexported_static_methods::Foo;
|
|
|
|
use reexported_static_methods::Baz;
|
|
|
|
use reexported_static_methods::Boz;
|
|
|
|
use reexported_static_methods::Bort;
|
2013-05-10 21:33:58 -07:00
|
|
|
|
|
|
|
pub fn main() {
|
2015-03-24 15:45:11 -04:00
|
|
|
assert_eq!(42_isize, Foo::foo());
|
|
|
|
assert_eq!(84_isize, Baz::bar());
|
2015-01-25 22:05:03 +01:00
|
|
|
assert!(Boz::boz(1));
|
2014-05-25 03:17:19 -07:00
|
|
|
assert_eq!("bort()".to_string(), Bort::bort());
|
2013-05-10 21:33:58 -07:00
|
|
|
}
|