use static_methods_crate::read;
pub fn main() {
- let result: int = read(~"5");
+ let result: int = read("5".to_owned());
assert_eq!(result, 5);
- assert_eq!(read::readMaybe(~"false"), Some(false));
- assert_eq!(read::readMaybe(~"foo"), None::<bool>);
+ assert_eq!(read::readMaybe("false".to_owned()), Some(false));
+ assert_eq!(read::readMaybe("foo".to_owned()), None::<bool>);
}