summaryrefslogtreecommitdiffstats
path: root/tests/ui/issues/issue-12863.rs
blob: 1ac1c3d818e58c3f106c9a081da4c8f3abe48a78 (plain)
1
2
3
4
5
6
7
8
mod foo { pub fn bar() {} }

fn main() {
    match () {
        foo::bar => {}
        //~^ ERROR expected unit struct, unit variant or constant, found function `foo::bar`
    }
}