2018-09-15 09:52:59 -05:00
|
|
|
// edition:2018
|
|
|
|
|
2018-11-11 18:58:39 -06:00
|
|
|
// Dummy import that previously introduced uniform path canaries.
|
2018-09-15 09:52:59 -05:00
|
|
|
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() {}
|