1 error[E0599]: no method named `owned` found for type `&dyn Foo` in the current scope
2 --> $DIR/object-pointer-types.rs:11:7
4 LL | x.owned(); //~ ERROR no method named `owned` found
7 = help: items from traits can only be used if the trait is implemented and in scope
8 = note: the following trait defines an item `owned`, perhaps you need to implement it:
11 error[E0599]: no method named `owned` found for type `&mut dyn Foo` in the current scope
12 --> $DIR/object-pointer-types.rs:17:7
14 LL | x.owned(); //~ ERROR no method named `owned` found
17 = help: items from traits can only be used if the trait is implemented and in scope
18 = note: the following trait defines an item `owned`, perhaps you need to implement it:
21 error[E0599]: no method named `managed` found for type `std::boxed::Box<(dyn Foo + 'static)>` in the current scope
22 --> $DIR/object-pointer-types.rs:23:7
24 LL | x.managed(); //~ ERROR no method named `managed` found
27 error: aborting due to 3 previous errors
29 For more information about this error, try `rustc --explain E0599`.