]> git.lizzy.rs Git - rust.git/blob - src/test/ui/issues/issue-13853-2.rs
Merge commit '97e504549371d7640cf011d266e3c17394fdddac' into sync_cg_clif-2021-12-20
[rust.git] / src / test / ui / issues / issue-13853-2.rs
1 trait FromStructReader<'a> { }
2 trait ResponseHook {
3      fn get(&self);
4 }
5 fn foo(res : Box<dyn ResponseHook>) { res.get } //~ ERROR attempted to take value of method
6 fn main() {}