1 #![feature(return_position_impl_trait_in_trait)]
2 #![allow(incomplete_features)]
7 fn baz(&self) -> impl Debug;
11 fn baz(&self) -> u32 {
17 let i = Box::new(42_u32) as Box<dyn Foo>;
18 //~^ ERROR the trait `Foo` cannot be made into an object
19 //~| ERROR the trait `Foo` cannot be made into an object
21 //~^ ERROR the trait `Foo` cannot be made into an object