summaryrefslogtreecommitdiffstats
path: root/tests/ui/suggestions/assoc-const-as-field.rs
blob: 678b58936a8d6922cf109ac0b2f6d82b33af0e3d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
pub mod Mod {
    pub struct Foo {}
    impl Foo {
        pub const BAR: usize = 42;
    }
}

fn foo(_: usize) {}

fn main() {
    foo(Mod::Foo.Bar);
    //~^ ERROR expected value, found
}