]> git.lizzy.rs Git - rust.git/blob - src/test/ui/editions-crate-root-2018.rs
Auto merge of #84589 - In-line:zircon-thread-name, r=JohnTitor
[rust.git] / src / test / ui / 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 }