rust/tests/ui/privacy/trait-object-method-error.stderr
2025-06-04 19:32:06 +05:00

16 lines
473 B
Plaintext

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`.