]> git.proxmox.com Git - rustc.git/blob - src/test/ui/editions-crate-root-2015.rs
New upstream version 1.52.0~beta.3+dfsg1
[rustc.git] / src / test / ui / editions-crate-root-2015.rs
1 // edition:2015
2
3 mod inner {
4 fn global_inner(_: ::nonexistant::Foo) {
5 //~^ ERROR failed to resolve: maybe a missing crate `nonexistant`?
6 }
7 fn crate_inner(_: crate::nonexistant::Foo) {
8 //~^ ERROR failed to resolve: maybe a missing crate `nonexistant`?
9 }
10
11 fn bare_global(_: ::nonexistant) {
12 //~^ ERROR cannot find type `nonexistant` in the crate root
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 }