]> git.lizzy.rs Git - rust.git/blob - src/test/ui/shadow-bool.rs
Auto merge of #95454 - randomicon00:fix95444, r=wesleywiser
[rust.git] / src / test / ui / shadow-bool.rs
1 // check-pass
2
3 mod bar {
4     pub trait QueryId {
5         const SOME_PROPERTY: bool;
6     }
7 }
8
9 use bar::QueryId;
10
11 #[allow(non_camel_case_types)]
12 pub struct bool;
13
14 impl QueryId for bool {
15     const SOME_PROPERTY: core::primitive::bool = true;
16 }
17
18 fn main() {}