2018-09-10 11:41:30 -05:00
|
|
|
// edition:2018
|
|
|
|
|
|
|
|
// Tests that arbitrary crates (other than `core`, `std` and `meta`)
|
|
|
|
// aren't allowed without `--extern`, even if they're in the sysroot.
|
|
|
|
use alloc; //~ ERROR unresolved import `alloc`
|
2019-06-20 03:52:31 -05:00
|
|
|
use test; // OK, imports the built-in attribute macro `#[test]`, but not the `test` crate.
|
2018-11-11 11:28:56 -06:00
|
|
|
use proc_macro; // OK, imports the built-in `proc_macro` attribute, but not the `proc_macro` crate.
|
2018-09-10 11:41:30 -05:00
|
|
|
|
|
|
|
fn main() {}
|