summaryrefslogtreecommitdiffstats
path: root/tests/ui/resolve/pathless-extern-ok.rs
blob: 0ffa5eb894040977d0ac92345e835d8ef6f72c33 (plain)
1
2
3
4
5
6
7
8
9
// edition:2018
// compile-flags:--extern alloc
// build-pass

// Test that `--extern alloc` will load from the sysroot without error.

fn main() {
    let _: Vec<i32> = alloc::vec::Vec::new();
}