rust/tests/ui/rfc-2632-const-trait-impl/hir-const-check.stderr

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

13 lines
421 B
Plaintext
Raw Normal View History

2021-07-29 21:15:53 +00:00
error[E0658]: `?` is not allowed in a `const fn`
2022-08-28 06:27:31 +00:00
--> $DIR/hir-const-check.rs:12:9
2020-03-02 18:53:58 +00:00
|
2020-06-26 00:43:48 +00:00
LL | Some(())?;
| ^^^^^^^^^
2021-07-29 21:15:53 +00:00
|
= note: see issue #74935 <https://github.com/rust-lang/rust/issues/74935> for more information
= help: add `#![feature(const_try)]` to the crate attributes to enable
2020-03-02 18:53:58 +00:00
error: aborting due to previous error
2021-07-29 21:15:53 +00:00
For more information about this error, try `rustc --explain E0658`.