2015-03-31 19:58:01 -04:00
|
|
|
trait FromStructReader<'a> { }
|
2014-12-22 21:20:31 -08:00
|
|
|
trait ResponseHook {
|
2015-12-15 04:31:58 -05:00
|
|
|
fn get(&self);
|
2014-12-22 21:20:31 -08:00
|
|
|
}
|
2019-05-28 14:46:13 -04:00
|
|
|
fn foo(res : Box<dyn ResponseHook>) { res.get } //~ ERROR attempted to take value of method
|
2014-12-22 21:20:31 -08:00
|
|
|
fn main() {}
|