]> git.proxmox.com Git - rustc.git/blobdiff - src/test/ui/rust-2018/edition-lint-nested-paths.rs
New upstream version 1.63.0+dfsg1
[rustc.git] / src / test / ui / rust-2018 / edition-lint-nested-paths.rs
index a7e34e407a382c7b0f215d34e2bca3bf61d50e8c..e622a8e24be633632d2cc62d446a6bbc6c72bdb9 100644 (file)
@@ -1,6 +1,6 @@
 // run-rustfix
 
-#![feature(rust_2018_preview, crate_visibility_modifier)]
+#![feature(rust_2018_preview)]
 #![deny(absolute_paths_not_starting_with_crate)]
 
 use foo::{a, b};
@@ -10,9 +10,9 @@ use foo::{a, b};
 //~| this is accepted in the current edition
 
 mod foo {
-    crate fn a() {}
-    crate fn b() {}
-    crate fn c() {}
+    pub(crate) fn a() {}
+    pub(crate) fn b() {}
+    pub(crate) fn c() {}
 }
 
 fn main() {