rust/tests/ui/stability-attribute/const-stability-attribute-i...

17 lines
624 B
Plaintext

error: feature `const_bar` implying `const_foobar` does not exist
--> $DIR/const-stability-attribute-implies-missing.rs:10:1
|
LL | #[rustc_const_unstable(feature = "const_foobar", issue = "1", implied_by = "const_bar")]
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
error: `foobar` is not yet stable as a const fn
--> $DIR/const-stability-attribute-implies-missing.rs:16:18
|
LL | const VAR: u32 = foobar();
| ^^^^^^^^
|
= help: add `#![feature(const_foobar)]` to the crate attributes to enable
error: aborting due to 2 previous errors