3 #![allow(unused_variables)]
4 // Testing creating two vtables with the same self type, but different
10 fn get(&self) -> isize;
11 fn wrap(self: Box<Self>) -> Box<dyn Any+'static>;
15 fn get(&self) -> isize {
18 fn wrap(self: Box<isize>) -> Box<dyn Any+'static> {
19 self as Box<dyn Any+'static>
23 fn is<T:Any>(x: &dyn Any) -> bool {
28 let x = Box::new(22isize) as Box<dyn Wrap>;
29 println!("x={}", x.get());