2025-03-11 12:08:45 +00:00
|
|
|
error: expected identifier, found `]`
|
2025-07-05 16:57:24 -07:00
|
|
|
--> $DIR/macro-bare-trait-objects-const-trait-bounds.rs:20:16
|
2025-03-11 12:08:45 +00:00
|
|
|
|
|
|
|
|
|
LL | ($Type:ty) => {
|
|
|
|
|
| -------- while parsing argument for this `ty` macro fragment
|
|
|
|
|
...
|
|
|
|
|
LL | check! { [const] Trait }
|
|
|
|
|
| ^ expected identifier
|
|
|
|
|
|
|
|
|
|
error[E0658]: const trait impls are experimental
|
2025-07-05 16:57:24 -07:00
|
|
|
--> $DIR/macro-bare-trait-objects-const-trait-bounds.rs:20:11
|
2025-03-11 12:08:45 +00:00
|
|
|
|
|
|
|
|
|
LL | check! { [const] Trait }
|
|
|
|
|
| ^^^^^
|
|
|
|
|
|
|
2025-07-13 16:21:25 +08:00
|
|
|
= note: see issue #143874 <https://github.com/rust-lang/rust/issues/143874> for more information
|
2025-03-11 12:08:45 +00:00
|
|
|
= help: add `#![feature(const_trait_impl)]` to the crate attributes to enable
|
|
|
|
|
= note: this compiler was built on YYYY-MM-DD; consider upgrading it if it is out of date
|
|
|
|
|
|
|
|
|
|
error: aborting due to 2 previous errors
|
|
|
|
|
|
|
|
|
|
For more information about this error, try `rustc --explain E0658`.
|