Given the following code:
#![feature(discriminant_value)]
fn main() {
let y = Some(1);
println!("{:?}", std::mem::discriminant(&y));
}
The current output is:
error[E0554]: `#![feature]` may not be used on the stable release channel
--> src/main.rs:1:1
|
1 | #![feature(discriminant_value)]
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Ideally the output should look like:
error: ...
help: the feature `discriminant_value` has been stable since 1.21.0 and no longer requires an attribute to enable
(or it could be downgraded from error to warning)
#83722 fixed this for #![feature(min_const_generics)] but not for #![feature(discriminant_value)], somehow
Given the following code:
The current output is:
Ideally the output should look like:
(or it could be downgraded from error to warning)
#83722 fixed this for
#![feature(min_const_generics)]but not for#![feature(discriminant_value)], somehow