Specify if struct/enum in arg mismatch error
This commit is contained in:
parent
39260f6d49
commit
4cd2fab8c5
5 changed files with 106 additions and 6 deletions
|
@ -8,7 +8,7 @@ impl S {
|
|||
}
|
||||
|
||||
fn main() {
|
||||
let _: Result<(), String> = Ok(); //~ ERROR this function takes
|
||||
let _: Result<(), String> = Ok(); //~ ERROR this enum variant takes
|
||||
foo(); //~ ERROR this function takes
|
||||
foo(()); //~ ERROR this function takes
|
||||
bar(); //~ ERROR this function takes
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue