mirror of
https://git.proxmox.com/git/rustc
synced 2025-08-17 02:14:14 +00:00
17 lines
284 B
Rust
17 lines
284 B
Rust
//@ build-pass (FIXME(62277): could be check-pass?)
|
|
//@ compile-flags:--cfg my_feature --check-cfg=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() {}
|