]>
Commit | Line | Data |
---|---|---|
1b1a35ee | 1 | error[E0615]: attempted to take value of method `get` on type `Box<(dyn ResponseHook + 'static)>` |
dc9dc135 | 2 | --> $DIR/issue-13853-2.rs:5:43 |
8faf50e0 | 3 | | |
dc9dc135 | 4 | LL | fn foo(res : Box<dyn ResponseHook>) { res.get } |
ba9703b0 XL |
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 | | ^^ | |
8faf50e0 XL |
11 | |
12 | error: aborting due to previous error | |
13 | ||
14 | For more information about this error, try `rustc --explain E0615`. |