// Regression test for . mod module { pub trait Trait { fn method(&self); } } // Note that we do not import Trait use std::ops::Deref; fn foo(x: impl Deref) { x.method(); //~^ ERROR no method named `method` found for type parameter } fn main() {}