]>
Commit | Line | Data |
---|---|---|
1 | // edition:2018 | |
2 | ||
3 | // Dummy import that previously introduced uniform path canaries. | |
4 | use std; | |
5 | ||
6 | // fn version() -> &'static str {""} | |
7 | ||
8 | mod foo { | |
9 | // Error wasn't reported, despite `version` being commented out above. | |
10 | use crate::version; //~ ERROR unresolved import `crate::version` | |
11 | ||
12 | fn bar() { | |
13 | version(); | |
14 | } | |
15 | } | |
16 | ||
17 | fn main() {} |