]> git.lizzy.rs Git - rust.git/blob - src/test/ui/imports/extern-prelude-extern-crate-cfg.rs
Auto merge of #75936 - sdroege:chunks-exact-construction-bounds-check, r=nagisa
[rust.git] / src / test / ui / imports / extern-prelude-extern-crate-cfg.rs
1 // build-pass (FIXME(62277): could be check-pass?)
2 // compile-flags:--cfg my_feature
3
4 #![no_std]
5
6 #[cfg(my_feature)]
7 extern crate std;
8
9 mod m {
10     #[cfg(my_feature)]
11     fn conditional() {
12         std::vec::Vec::<u8>::new(); // OK
13     }
14 }
15
16 fn main() {}