1
Fork 0

show unit output when there is only output diff in diagnostics

This commit is contained in:
yukang 2024-07-06 16:41:16 +08:00
parent 28cc0b643d
commit f46c4129e0
7 changed files with 46 additions and 6 deletions

View file

@ -0,0 +1,8 @@
fn bar() {}
fn foo(x: i32) -> u32 {
0
}
fn main() {
let b: fn() -> u32 = bar; //~ ERROR mismatched types [E0308]
let f: fn(i32) = foo; //~ ERROR mismatched types [E0308]
}