summary refs log tree commit diff
path: root/src/test/ui/issues/issue-12863.rs
blob: d7941a70d51fdc7e39e0b81461a065c6f2f1413a (plain)
1
2
3
4
5
6
7
mod foo { pub fn bar() {} }

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