rust/src/test/ui/issues/issue-13853-2.rs
2018-12-25 21:08:33 -07:00

7 lines
175 B
Rust

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