]> git.lizzy.rs Git - rust.git/blob - src/test/ui/rfc-2126-extern-absolute-paths/not-allowed.rs
Auto merge of #93718 - thomcc:used-macho, r=pnkfelix
[rust.git] / src / test / ui / rfc-2126-extern-absolute-paths / not-allowed.rs
1 // edition:2018
2
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.
8
9 fn main() {}