// option. This file may not be copied, modified, or distributed
// except according to those terms.
-// ignore-fast
pub trait plus {
pub fn main() {
assert_eq!(10u.plus(), 30);
- assert_eq!((~"hi").plus(), 200);
+ assert_eq!(("hi".to_owned()).plus(), 200);
- assert_eq!((vec!(1)).length_().str(), ~"1");
+ assert_eq!((vec!(1)).length_().str(), "1".to_owned());
let vect = vec!(3, 4).map_(|a| *a + 4);
assert_eq!(*vect.get(0), 7);
let vect = (vec!(3, 4)).map_::<uint>(|a| *a as uint + 4u);