const fn foo() {}
unsafe fn bar() {}
fn baz() {}
fn main() {
let x = match 2 {
2 => foo,
3 => bar,
_ => baz
};
}
this compiles with rustc but shows error in ra diag:
at crate ra, file /tmp/ra/src/main.rs: Error RustcHardError("E0308") from LineCol { line: 7, col: 7 } to LineCol { line: 7, col: 10 }: expected fn foo(), found unsafe fn bar()
this compiles with rustc but shows error in ra diag: