2 #![allow(non_snake_case)]
3 #![allow(non_camel_case_types)]
5 #![feature(box_syntax)]
7 trait repeat<A> { fn get(&self) -> A; }
9 impl<A:Clone + 'static> repeat<A> for Box<A> {
15 fn repeater<A:Clone + 'static>(v: Box<A>) -> Box<dyn repeat<A>+'static> {
16 box v as Box<dyn repeat<A>+'static> // No
21 let y = repeater(box x);
22 assert_eq!(x, y.get());