rust/tests/ui/imports/extern-prelude-extern-crate-cfg.rs

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

17 lines
254 B
Rust
Raw Normal View History

// build-pass (FIXME(62277): could be check-pass?)
// compile-flags:--cfg my_feature
#![no_std]
#[cfg(my_feature)]
extern crate std;
mod m {
#[cfg(my_feature)]
fn conditional() {
std::vec::Vec::<u8>::new(); // OK
}
}
fn main() {}