show unit output when there is only output diff in diagnostics
This commit is contained in:
parent
28cc0b643d
commit
f46c4129e0
7 changed files with 46 additions and 6 deletions
8
tests/ui/method-output-diff-issue-127263.rs
Normal file
8
tests/ui/method-output-diff-issue-127263.rs
Normal 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]
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue