]> git.lizzy.rs Git - rust.git/blob - tests/ui/typeck/issue-13853-2.stderr
Rollup merge of #107355 - JohnTitor:issue-60755, r=compiler-errors
[rust.git] / tests / ui / typeck / issue-13853-2.stderr
1 error[E0615]: attempted to take value of method `get` on type `Box<(dyn ResponseHook + 'static)>`
2   --> $DIR/issue-13853-2.rs:5:43
3    |
4 LL | fn foo(res : Box<dyn ResponseHook>) { res.get }
5    |                                           ^^^ method, not a field
6    |
7 help: use parentheses to call the method
8    |
9 LL | fn foo(res : Box<dyn ResponseHook>) { res.get() }
10    |                                              ++
11
12 error: aborting due to previous error
13
14 For more information about this error, try `rustc --explain E0615`.