1 // Make sure that attribute used when injecting the prelude are resolved
5 // aux-build:not-libstd.rs
7 //revisions: rust2015 rust2018
8 //[rust2018] edition:2018
10 // The prelude import shouldn't see these as candidates for when it's trying to
11 // use the built-in macros.
13 use core::prelude::v1::test as prelude_import;
14 use core::prelude::v1::test as macro_use;
16 // Should not be used for the prelude import - not a concern in the 2015 edition
17 // because `std` is already declared in the crate root.
19 extern crate not_libstd as std;
23 // The extern crate item should override `std` in the extern prelude.
25 std::not_in_lib_std();