]> git.proxmox.com Git - rustc.git/blame - src/test/ui/object-pointer-types.stderr
New upstream version 1.39.0+dfsg1
[rustc.git] / src / test / ui / object-pointer-types.stderr
CommitLineData
b7449926 1error[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 4LL | 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
11error[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 14LL | 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
21error[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 24LL | x.managed();
e1599b0c 25 | ^^^^^^^ method not found in `std::boxed::Box<(dyn Foo + 'static)>`
b7449926
XL
26
27error: aborting due to 3 previous errors
28
29For more information about this error, try `rustc --explain E0599`.