| commit | c0a166d790d3494ce8e397c2f169463a66e66b26 | [log] [tgz] |
|---|---|---|
| author | David Tolnay <dtolnay@gmail.com> | Mon Mar 16 00:40:15 2020 -0700 |
| committer | David Tolnay <dtolnay@gmail.com> | Mon Mar 16 00:40:15 2020 -0700 |
| tree | eec9c39d87148c241c5e7deb4ba1d9998d32da57 | |
| parent | 59b7edea2737cdbbf86ff06f23d416cd58111e77 [diff] [blame] |
Add error message to say Result is not implemented yet
diff --git a/syntax/check.rs b/syntax/check.rs index ef3faff..80937bb 100644 --- a/syntax/check.rs +++ b/syntax/check.rs
@@ -69,6 +69,12 @@ errors.push(return_by_value(ty, types)); } } + if efn.throws { + errors.push(Error::new_spanned( + efn, + "fallible functions are not implemented yet", + )); + } } _ => {} }