]> git.lizzy.rs Git - rust.git/blob - src/test/ui/object-pointer-types.stderr
Rollup merge of #53317 - estebank:abolish-ice, r=oli-obk
[rust.git] / src / test / ui / object-pointer-types.stderr
1 error[E0599]: no method named `owned` found for type `&dyn Foo` in the current scope
2   --> $DIR/object-pointer-types.rs:22:7
3    |
4 LL |     x.owned(); //~ ERROR no method named `owned` found
5    |       ^^^^^
6    |
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:
9            candidate #1: `Foo`
10
11 error[E0599]: no method named `owned` found for type `&mut dyn Foo` in the current scope
12   --> $DIR/object-pointer-types.rs:28:7
13    |
14 LL |     x.owned(); //~ ERROR no method named `owned` found
15    |       ^^^^^
16    |
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:
19            candidate #1: `Foo`
20
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:34:7
23    |
24 LL |     x.managed();  //~ ERROR no method named `managed` found
25    |       ^^^^^^^
26
27 error: aborting due to 3 previous errors
28
29 For more information about this error, try `rustc --explain E0599`.