about summary refs log tree commit diff
path: root/tests/ui/privacy/trait-object-method-error.stderr
blob: 40dde8fc47e1bc43faf2b4cf278cb53694bdceb0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
error[E0599]: no method named `struct_impl_method` found for struct `Box<dyn MyTrait>` in the current scope
  --> $DIR/trait-object-method-error.rs:19:9
   |
LL |     obj.struct_impl_method();
   |         ^^^^^^^^^^^^^^^^^^
   |
help: there is a method `trait_method` with a similar name
   |
LL -     obj.struct_impl_method();
LL +     obj.trait_method();
   |

error: aborting due to 1 previous error

For more information about this error, try `rustc --explain E0599`.