]> git.lizzy.rs Git - rust.git/blob - src/test/ui/parser/assoc-const-underscore-syntactic-pass.rs
Account for ADT bodies and struct expressions
[rust.git] / src / test / 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 };