]> git.lizzy.rs Git - rust.git/blob - tests/ui/parser/assoc-const-underscore-syntactic-pass.rs
Rollup merge of #103236 - tspiteri:redoc-int-adc-sbb, r=m-ou-se
[rust.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 };