]> git.lizzy.rs Git - rust.git/blob - src/test/ui/conditional-compilation/cfg_accessible-bugs.rs
Auto merge of #98051 - davidtwco:split-dwarf-stabilization, r=wesleywiser
[rust.git] / src / test / ui / conditional-compilation / cfg_accessible-bugs.rs
1 // This test is a collection of test that should pass.
2 //
3 // check-fail
4
5 #![feature(cfg_accessible)]
6 #![feature(trait_alias)]
7
8 trait TraitAlias = std::fmt::Debug + Send;
9
10 // FIXME: Currently shows "cannot determine" but should be `false`
11 #[cfg_accessible(unresolved)] //~ ERROR cannot determine
12 const C: bool = true;
13
14 // FIXME: Currently shows "not sure" but should be `false`
15 #[cfg_accessible(TraitAlias::unresolved)] //~ ERROR not sure whether the path is accessible or not
16 const D: bool = true;
17
18 fn main() {}