2024-06-21 12:22:29 +00:00
|
|
|
warning: the feature `effects` is incomplete and may not be safe to use and/or cause compiler crashes
|
|
|
|
|
--> $DIR/hir-const-check.rs:3:30
|
|
|
|
|
|
|
|
|
|
|
LL | #![feature(const_trait_impl, effects)]
|
|
|
|
|
| ^^^^^^^
|
|
|
|
|
|
|
|
|
|
|
= note: see issue #102090 <https://github.com/rust-lang/rust/issues/102090> for more information
|
|
|
|
|
= note: `#[warn(incomplete_features)]` on by default
|
|
|
|
|
|
2021-07-29 23:15:53 +02: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 10:53:58 -08:00
|
|
|
|
|
2020-06-25 17:43:48 -07:00
|
|
|
LL | Some(())?;
|
|
|
|
|
| ^^^^^^^^^
|
2021-07-29 23:15:53 +02: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
|
2024-01-10 01:39:02 -05:00
|
|
|
= note: this compiler was built on YYYY-MM-DD; consider upgrading it if it is out of date
|
2020-03-02 10:53:58 -08:00
|
|
|
|
2024-06-21 12:22:29 +00:00
|
|
|
error: aborting due to 1 previous error; 1 warning emitted
|
2020-03-02 10:53:58 -08:00
|
|
|
|
2021-07-29 23:15:53 +02:00
|
|
|
For more information about this error, try `rustc --explain E0658`.
|