mirror of
https://github.com/rust-lang/rust.git
synced 2024-12-02 03:33:59 +00:00
18 lines
343 B
Rust
18 lines
343 B
Rust
//@ 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() {}
|