rust/tests/ui/parser/assoc-const-underscore-syntactic-pass.rs

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

19 lines
299 B
Rust
Raw Normal View History

// 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 _: () = ();
}
};