-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: better error when fn with default return type
Co-authored-by: Vimal Patel <[email protected]> Co-authored-by: José Manuel Peña <[email protected]>
- Loading branch information
1 parent
d1d3616
commit 4ddeb42
Showing
2 changed files
with
9 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 2 additions & 2 deletions
4
tests/compile_fail/on_a_function_with_default_return_type.stderr
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
error: custom attribute panicked | ||
error: default return types are not supported | ||
--> tests/compile_fail/on_a_function_with_default_return_type.rs:3:1 | ||
| | ||
3 | #[memoized(key_expr = ())] | ||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^ | ||
| | ||
= help: message: not implemented: default return types are not supported | ||
= note: this error originates in the attribute macro `memoized` (in Nightly builds, run with -Z macro-backtrace for more info) |