about summary refs log tree commit diff
path: root/tests/ui/cross-crate/reexported-static-methods-cross-crate.rs
blob: 6092ff8a40d81d91e4f1fe6d013d2443a67466cf (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
//@ 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());
}