3 #![allow(unused_variables)]
4 // Testing creating two vtables with the same self type, but different
7 #![feature(box_syntax)]
12 fn get(&self) -> isize;
13 fn wrap(self: Box<Self>) -> Box<dyn Any+'static>;
17 fn get(&self) -> isize {
20 fn wrap(self: Box<isize>) -> Box<dyn Any+'static> {
21 self as Box<dyn Any+'static>
25 fn is<T:Any>(x: &dyn Any) -> bool {
30 let x = box 22isize as Box<dyn Wrap>;
31 println!("x={}", x.get());