//@ check-pass #![allow(dead_code)] //@ pretty-expanded FIXME #23616 /* #7673 Polymorphically creating traits barely works */ pub fn main() {} trait A { fn dummy(&self) { } } impl A for T {} fn owned2(a: Box) { a as Box; } fn owned3(a: Box) { Box::new(a) as Box; }