about summary refs log tree commit diff
path: root/tests/ui/conditional-compilation/cfg_accessible-bugs.rs
blob: 3bf04a7eb9b3a4b12622a96e1e0538cc1503e897 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
// This test is a collection of test that should pass.
//
//@ check-fail

#![feature(cfg_accessible)]
#![feature(trait_alias)]

trait TraitAlias = std::fmt::Debug + Send;

// FIXME: Currently shows "cannot determine" but should be `false`
#[cfg_accessible(unresolved)] //~ ERROR cannot determine
const C: bool = true;

// FIXME: Currently shows "not sure" but should be `false`
#[cfg_accessible(TraitAlias::unresolved)] //~ ERROR not sure whether the path is accessible or not
const D: bool = true;

fn main() {}