rust/tests/ui/shadow-bool.rs

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

19 lines
257 B
Rust
Raw Normal View History

//@ check-pass
mod bar {
pub trait QueryId {
const SOME_PROPERTY: bool;
}
}
use bar::QueryId;
#[allow(non_camel_case_types)]
pub struct bool;
impl QueryId for bool {
const SOME_PROPERTY: core::primitive::bool = true;
}
fn main() {}