about summary refs log tree commit diff
path: root/tests/ui/parser/assoc/assoc-const-underscore-syntactic-pass.rs
blob: 63c567b2d033258f7cbe581ccec9e8c5e3802cc7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
// 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 _: () = ();
    }
};