7 //~^ this has a `Sized` requirement
10 impl MutTrait for MutType {
11 fn function(&mut self) {}
20 //~^ this has a `Sized` requirement
28 (&mut MutType as &mut dyn MutTrait).function();
29 //~^ ERROR the `function` method cannot be invoked on a trait object
30 (&Type as &dyn Trait).function();
31 //~^ ERROR the `function` method cannot be invoked on a trait object