1
Fork 0

Specify if struct/enum in arg mismatch error

This commit is contained in:
Smitty 2021-06-20 13:48:37 -04:00
parent 39260f6d49
commit 4cd2fab8c5
5 changed files with 106 additions and 6 deletions

View file

@ -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