use std::ops::Deref; struct Foo; impl Deref for Foo { } //~ ERROR must be used fn main() {}