2 // aux-build:static-methods-crate.rs
4 extern crate static_methods_crate;
6 use static_methods_crate::read;
9 let result: isize = read("5".to_string());
10 assert_eq!(result, 5);
11 assert_eq!(read::readMaybe("false".to_string()), Some(false));
12 assert_eq!(read::readMaybe("foo".to_string()), None::<bool>);