1 2 3 4 5 6 7 8
use std::ops::Deref; struct Foo; impl<Foo> Deref for Foo { } //~ ERROR must be used //~^ ERROR conflicting implementations fn main() {}