]> git.proxmox.com Git - rustc.git/blob - tests/ui/parser/assoc-const-underscore-syntactic-pass.rs
New upstream version 1.68.2+dfsg1
[rustc.git] / tests / ui / parser / assoc-const-underscore-syntactic-pass.rs
1 // All constant items (associated or otherwise) may syntactically use `_` as a name.
2
3 // check-pass
4
5 fn main() {}
6
7 #[cfg(FALSE)]
8 const _: () = {
9 pub trait A {
10 const _: () = ();
11 }
12 impl A for () {
13 const _: () = ();
14 }
15 impl dyn A {
16 const _: () = ();
17 }
18 };