rust/src/test/ui/issues/issue-13853-2.rs
2019-05-29 00:57:31 -04:00

7 lines
179 B
Rust

trait FromStructReader<'a> { }
trait ResponseHook {
fn get(&self);
}
fn foo(res : Box<dyn ResponseHook>) { res.get } //~ ERROR attempted to take value of method
fn main() {}