]> git.lizzy.rs Git - rust.git/blob - tests/ui/resolve/editions-crate-root-2018.rs
Rollup merge of #106144 - tgross35:patch-1, r=Mark-Simulacrum
[rust.git] / tests / ui / resolve / editions-crate-root-2018.rs
1 // edition:2018
2
3 mod inner {
4     fn global_inner(_: ::nonexistant::Foo) {
5         //~^ ERROR failed to resolve: could not find `nonexistant` in the list of imported crates
6     }
7     fn crate_inner(_: crate::nonexistant::Foo) {
8         //~^ ERROR failed to resolve: could not find `nonexistant` in the crate root
9     }
10
11     fn bare_global(_: ::nonexistant) {
12         //~^ ERROR cannot find crate `nonexistant` in the list of imported crates
13     }
14     fn bare_crate(_: crate::nonexistant) {
15         //~^ ERROR cannot find type `nonexistant` in the crate root
16     }
17 }
18
19 fn main() {
20
21 }