blob: 37684e1bf81e9f2715b695bcc5464acd0f686bc7 [file] [log] [blame]
// Test that we don't issue an unused import warning when there's
// a method lookup error and that trait was possibly applicable.
use foo::Bar;
mod foo {
pub trait Bar {
fn uwu(&self) {}
}
}
struct Foo;
fn main() {
Foo.uwu();
//~^ ERROR no method named `uwu` found for struct `Foo` in the current scope
}