1 error: the `function` method cannot be invoked on a trait object
2 --> $DIR/regular.rs:28:41
5 | ----- this has a `Sized` requirement
7 LL | (&mut MutType as &mut dyn MutTrait).function();
10 error: the `function` method cannot be invoked on a trait object
11 --> $DIR/regular.rs:30:27
14 | ----- this has a `Sized` requirement
16 LL | (&Type as &dyn Trait).function();
19 error: aborting due to 2 previous errors