rust/tests/ui/consts/control-flow/try.stderr

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

13 lines
386 B
Plaintext
Raw Normal View History

2021-07-29 16:15:53 -05:00
error[E0658]: `?` is not allowed in a `const fn`
2020-05-21 14:49:38 -05:00
--> $DIR/try.rs:6:5
|
LL | x?;
| ^^
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
error: aborting due to previous error
2021-07-29 16:15:53 -05:00
For more information about this error, try `rustc --explain E0658`.