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

13 lines
421 B
Plaintext
Raw Normal View History

2021-07-29 16:15:53 -05:00
error[E0658]: `?` is not allowed in a `const fn`
2022-08-28 01:27:31 -05:00
--> $DIR/hir-const-check.rs:12:9
2020-03-02 12:53:58 -06:00
|
2020-06-25 19:43:48 -05:00
LL | Some(())?;
| ^^^^^^^^^
2021-07-29 16:15:53 -05: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 12:53:58 -06:00
error: aborting due to previous error
2021-07-29 16:15:53 -05:00
For more information about this error, try `rustc --explain E0658`.