1 #![deny(where_clauses_object_safety)]
6 fn foo(&self) where Self: Trait; //~ ERROR the trait `X` cannot be made into an object
7 //~^ WARN this was previously accepted by the compiler but is being phased out
14 impl Trait for dyn X {}
17 // Check that this does not segfault.
18 <dyn X as X>::foo(&());