2020-01-02 16:31:30 -08:00
error[E0658]: const trait impls are experimental
2022-08-28 06:27:31 +00:00
--> $DIR/feature-gate.rs:10:6
2020-01-02 16:31:30 -08:00
|
LL | impl const T for S {}
| ^^^^^
|
2020-02-07 13:07:02 +01:00
= note: see issue #67792 <https://github.com/rust-lang/rust/issues/67792> for more information
2020-01-02 16:31:30 -08:00
= help: add `#![feature(const_trait_impl)]` 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-01-02 16:31:30 -08:00
2023-12-18 17:55:55 +01:00
error[E0658]: const trait impls are experimental
--> $DIR/feature-gate.rs:13:15
|
LL | const fn f<A: ~const T>() {}
| ^^^^^^
|
= note: see issue #67792 <https://github.com/rust-lang/rust/issues/67792> for more information
= help: add `#![feature(const_trait_impl)]` 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
2023-12-18 17:55:55 +01:00
error[E0658]: const trait impls are experimental
--> $DIR/feature-gate.rs:14:9
|
LL | fn g<A: const T>() {}
| ^^^^^
|
= note: see issue #67792 <https://github.com/rust-lang/rust/issues/67792> for more information
= help: add `#![feature(const_trait_impl)]` 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
2023-12-18 17:55:55 +01:00
error[E0658]: const trait impls are experimental
--> $DIR/feature-gate.rs:18:17
|
LL | discard! { impl ~const T }
| ^^^^^^
|
= note: see issue #67792 <https://github.com/rust-lang/rust/issues/67792> for more information
= help: add `#![feature(const_trait_impl)]` 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
2023-12-18 17:55:55 +01:00
error[E0658]: const trait impls are experimental
--> $DIR/feature-gate.rs:19:17
|
LL | discard! { impl const T }
| ^^^^^
|
= note: see issue #67792 <https://github.com/rust-lang/rust/issues/67792> for more information
= help: add `#![feature(const_trait_impl)]` 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
2023-12-18 17:55:55 +01:00
2022-08-28 06:27:31 +00:00
error[E0658]: `const_trait` is a temporary placeholder for marking a trait that is suitable for `const` `impls` and all default bodies as `const`, which may be removed or renamed in the future.
--> $DIR/feature-gate.rs:8:1
|
LL | #[const_trait]
| ^^^^^^^^^^^^^^
|
= note: see issue #67792 <https://github.com/rust-lang/rust/issues/67792> for more information
= help: add `#![feature(const_trait_impl)]` 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
2022-08-28 06:27:31 +00:00
2023-12-18 17:55:55 +01:00
error: aborting due to 6 previous errors
2020-01-02 16:31:30 -08:00
For more information about this error, try `rustc --explain E0658`.