3 // Tests that arbitrary crates (other than `core`, `std` and `meta`)
4 // aren't allowed without `--extern`, even if they're in the sysroot.
5 use alloc; //~ ERROR unresolved import `alloc`
6 use test; // OK, imports the built-in attribute macro `#[test]`, but not the `test` crate.
7 use proc_macro; // OK, imports the built-in `proc_macro` attribute, but not the `proc_macro` crate.