-
-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
7 additions
and
3 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
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,9 +1,7 @@ | ||
error[E0015]: cannot call non-const closure in constant functions | ||
error: no_panic attribute on const fn is not supported | ||
--> tests/ui/const-fn.rs:3:1 | ||
| | ||
3 | #[no_panic] | ||
| ^^^^^^^^^^^ | ||
| | ||
= note: closures need an RFC before allowed to be called in constant functions | ||
= note: calls in constant functions are limited to constant functions, tuple structs and tuple variants | ||
= note: this error originates in the attribute macro `no_panic` (in Nightly builds, run with -Z macro-backtrace for more info) |