mirror of
https://github.com/rust-lang/rust.git
synced 2025-10-27 11:05:06 +00:00
The extended syntax for function signature that includes contract clauses should never be user exposed versus the interface we want to ship externally eventually.
44 lines
1.9 KiB
Plaintext
44 lines
1.9 KiB
Plaintext
error[E0658]: use of unstable library feature `rustc_contracts`
|
|
--> $DIR/feature-gate-rustc-contracts.rs:3:3
|
|
|
|
|
LL | #[core::contracts::requires(x > 0)]
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
= note: see issue #133866 <https://github.com/rust-lang/rust/issues/133866> for more information
|
|
= help: add `#![feature(rustc_contracts)]` 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[E0658]: use of unstable library feature `rustc_contracts`
|
|
--> $DIR/feature-gate-rustc-contracts.rs:8:3
|
|
|
|
|
LL | #[core::contracts::ensures(|ret| *ret > 0)]
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
= note: see issue #133866 <https://github.com/rust-lang/rust/issues/133866> for more information
|
|
= help: add `#![feature(rustc_contracts)]` 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[E0658]: contracts are experimental
|
|
--> $DIR/feature-gate-rustc-contracts.rs:3:1
|
|
|
|
|
LL | #[core::contracts::requires(x > 0)]
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
= note: see issue #133866 <https://github.com/rust-lang/rust/issues/133866> for more information
|
|
= help: add `#![feature(rustc_contracts)]` 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[E0658]: contracts are experimental
|
|
--> $DIR/feature-gate-rustc-contracts.rs:8:1
|
|
|
|
|
LL | #[core::contracts::ensures(|ret| *ret > 0)]
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
= note: see issue #133866 <https://github.com/rust-lang/rust/issues/133866> for more information
|
|
= help: add `#![feature(rustc_contracts)]` 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 4 previous errors
|
|
|
|
For more information about this error, try `rustc --explain E0658`.
|