rust/src/test/ui/issues/issue-13853-2.stderr

10 lines
410 B
Plaintext
Raw Normal View History

2018-07-15 16:11:54 -05:00
error[E0615]: attempted to take value of method `get` on type `std::boxed::Box<(dyn ResponseHook + 'static)>`
2019-05-28 13:46:13 -05:00
--> $DIR/issue-13853-2.rs:5:43
2018-07-15 16:11:54 -05:00
|
2019-05-28 13:46:13 -05:00
LL | fn foo(res : Box<dyn ResponseHook>) { res.get }
| ^^^ help: use parentheses to call the method: `get()`
2018-07-15 16:11:54 -05:00
error: aborting due to previous error
For more information about this error, try `rustc --explain E0615`.