Closed
Description
The #[allow_internal_unstable]
attribute can only enable compiler features. Library features cannot be enabled.
Examples:
#![feature(allow_internal_unstable)]
// #![feature(wrapping_next_power_of_two, const_transmute)]
#[allow_internal_unstable(wrapping_next_power_of_two)]
fn g(a: u64) -> u64 {
a.wrapping_next_power_of_two()
}
#[allow_internal_unstable(const_transmute)]
const fn h(a: u64) -> i64 {
unsafe { std::mem::transmute(a) }
}
- Expected: can be built without errors.
- Actual: still complains about missing
#![feature]
s.
Rustc version = 1.43.0-nightly (2020-02-22 436494b8f8008b600d64)