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

28 lines
1.1 KiB
Plaintext
Raw Normal View History

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-30 17:08:45 +00:00
error: using `#![feature(effects)]` without enabling next trait solver globally
|
= note: the next trait solver must be enabled globally for the effects feature to work correctly
= help: use `-Znext-solver` to enable
error: aborting due to 2 previous errors; 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`.