rust/tests/ui/unresolved/unresolved-candidates.rs

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

14 lines
195 B
Rust
Raw Normal View History

mod a {
pub trait Trait {}
}
mod b {
use Trait; //~ ERROR unresolved import `Trait`
}
mod c {
impl Trait for () {} //~ ERROR cannot find trait `Trait` in this scope
}
fn main() {}