Sign in
fuchsia
/
third_party
/
rust
/
9d09331e00b02f81c714b0c41ce3a38380dd36a2
/
.
/
src
/
test
/
ui
/
imports
/
extern-prelude-extern-crate-cfg.rs
blob: cfae08fccaa4b72dc5e683fdfb4841f4cca89d1d [
file
] [
log
] [
blame
]
// 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
()
{}