]>
Commit | Line | Data |
---|---|---|
8faf50e0 | 1 | // edition:2018 |
1a4d82fc | 2 | |
13cf67c4 | 3 | // Dummy import that previously introduced uniform path canaries. |
b7449926 | 4 | use std; |
94b46f34 | 5 | |
b7449926 XL |
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 | } | |
83c7162d | 15 | } |
9e0c209e SL |
16 | |
17 | fn main() {} |