// Test that blanket impl of DispatchFromDyn is rejected. // regression test for issue #![feature(dispatch_from_dyn)] impl std::ops::DispatchFromDyn for T {} //~^ ERROR type parameter `T` must be used as the type parameter for some local type (e.g., `MyStruct`) //~| ERROR the trait `DispatchFromDyn` may only be implemented for a coercion between structures fn main() {}