rust/src/test/ui/issues/issue-13853-2.stderr
Andy Russell e3fe0ee97b
use structured suggestion for method calls
Furthermore, don't suggest calling the method if it is part of a place
expression, as this is invalid syntax.
2019-01-03 13:42:52 -05:00

10 lines
446 B
Plaintext

error[E0615]: attempted to take value of method `get` on type `std::boxed::Box<(dyn ResponseHook + 'static)>`
--> $DIR/issue-13853-2.rs:5:39
|
LL | fn foo(res : Box<ResponseHook>) { res.get } //~ ERROR attempted to take value of method
| ^^^ help: use parentheses to call the method: `get()`
error: aborting due to previous error
For more information about this error, try `rustc --explain E0615`.