2020-02-14 15:56:05 +01:00
|
|
|
// All constant items (associated or otherwise) may syntactically use `_` as a name.
|
|
|
|
|
|
|
|
|
|
//@ check-pass
|
|
|
|
|
|
|
|
|
|
fn main() {}
|
|
|
|
|
|
2025-03-29 17:24:03 +00:00
|
|
|
#[cfg(false)]
|
2020-02-14 15:56:05 +01:00
|
|
|
const _: () = {
|
|
|
|
|
pub trait A {
|
|
|
|
|
const _: () = ();
|
|
|
|
|
}
|
|
|
|
|
impl A for () {
|
|
|
|
|
const _: () = ();
|
|
|
|
|
}
|
|
|
|
|
impl dyn A {
|
|
|
|
|
const _: () = ();
|
|
|
|
|
}
|
|
|
|
|
};
|