summaryrefslogtreecommitdiffstats
path: root/src/test/ui/statics/static-method-xcrate.rs
blob: 1d1cb381095361cc645d1526a2a2088aa9dd31a4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
// run-pass
// aux-build:static-methods-crate.rs

extern crate static_methods_crate;

use static_methods_crate::read;

pub fn main() {
    let result: isize = read("5".to_string());
    assert_eq!(result, 5);
    assert_eq!(read::readMaybe("false".to_string()), Some(false));
    assert_eq!(read::readMaybe("foo".to_string()), None::<bool>);
}