rust/tests/ui/issues/issue-12863.rs
2023-01-11 09:32:08 +00:00

9 lines
180 B
Rust

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