Sign in
android
/
toolchain
/
rustc
/
refs/heads/main
/
.
/
tests
/
ui
/
feature-gates
/
feature-gate-cfg-boolean-literals.rs
blob: 6784b4450490bcb557ddc0ac13ddaedd58d7de56 [
file
] [
log
] [
blame
] [
edit
]
#[
cfg
(
true
)]
//~ ERROR `cfg(true)` is experimental
fn
foo
()
{}
#[
cfg_attr
(
true
,
cfg
(
false
))]
//~ ERROR `cfg(true)` is experimental
//~^ ERROR `cfg(false)` is experimental
fn
foo
()
{}
fn
main
()
{
cfg
!(
false
);
//~ ERROR `cfg(false)` is experimental
}