rust/tests/ui/parser/assoc/assoc-const-underscore-syntactic-pass.rs
2024-02-16 20:02:50 +00:00

19 lines
300 B
Rust

// All constant items (associated or otherwise) may syntactically use `_` as a name.
//@ check-pass
fn main() {}
#[cfg(FALSE)]
const _: () = {
pub trait A {
const _: () = ();
}
impl A for () {
const _: () = ();
}
impl dyn A {
const _: () = ();
}
};