rust/tests/ui/rust-2018/uniform-paths/issue-54253.rs

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

18 lines
342 B
Rust
Raw Normal View History

// edition:2018
// Dummy import that previously introduced uniform path canaries.
use std;
// fn version() -> &'static str {""}
mod foo {
// Error wasn't reported, despite `version` being commented out above.
use crate::version; //~ ERROR unresolved import `crate::version`
fn bar() {
version();
}
}
fn main() {}