rust/src/test/ui/shadow-bool.rs
Mark Rousskov 178de46116 Add primitive module to libcore/std
This re-exports the primitive types from libcore at `core::primitive` to allow
macro authors to have a reliable location to use them from.
2020-02-06 16:29:01 -05:00

19 lines
256 B
Rust

// 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() {}