]>
Commit | Line | Data |
---|---|---|
b7449926 | 1 | error[E0599]: no method named `owned` found for type `&dyn Foo` in the current scope |
0731742a | 2 | --> $DIR/object-pointer-types.rs:11:7 |
b7449926 | 3 | | |
532ac7d7 | 4 | LL | x.owned(); |
e1599b0c | 5 | | ^^^^^ method not found in `&dyn Foo` |
b7449926 XL |
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 | |
0731742a | 12 | --> $DIR/object-pointer-types.rs:17:7 |
b7449926 | 13 | | |
532ac7d7 | 14 | LL | x.owned(); |
e1599b0c | 15 | | ^^^^^ method not found in `&mut dyn Foo` |
b7449926 XL |
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 | |
0731742a | 22 | --> $DIR/object-pointer-types.rs:23:7 |
b7449926 | 23 | | |
532ac7d7 | 24 | LL | x.managed(); |
e1599b0c | 25 | | ^^^^^^^ method not found in `std::boxed::Box<(dyn Foo + 'static)>` |
b7449926 XL |
26 | |
27 | error: aborting due to 3 previous errors | |
28 | ||
29 | For more information about this error, try `rustc --explain E0599`. |