1error[E0599]: no method named `owned` found for reference `&dyn Foo` in the current scope 2 --> $DIR/object-pointer-types.rs:11:7 3 | 4LL | fn owned(self: Box<Self>); 5 | --------- the method might not be found because of this arbitrary self type 6... 7LL | x.owned(); 8 | ^^^^^ method not found in `&dyn Foo` 9 10error[E0599]: no method named `owned` found for mutable reference `&mut dyn Foo` in the current scope 11 --> $DIR/object-pointer-types.rs:17:7 12 | 13LL | fn owned(self: Box<Self>); 14 | --------- the method might not be found because of this arbitrary self type 15... 16LL | x.owned(); 17 | ^^^^^ method not found in `&mut dyn Foo` 18 19error[E0599]: no method named `managed` found for struct `Box<(dyn Foo + 'static)>` in the current scope 20 --> $DIR/object-pointer-types.rs:23:7 21 | 22LL | x.managed(); 23 | ^^^^^^^ method not found in `Box<(dyn Foo + 'static)>` 24 25error: aborting due to 3 previous errors 26 27For more information about this error, try `rustc --explain E0599`. 28