#![allow(dead_code, deprecated, unused_variables, unused_mut)] #![feature(wrapping_next_power_of_two)] use std::num::Wrapping; fn main() { assert_eq!(Wrapping(2usize).next_power_of_two(), Wrapping(2)); assert_eq!(Wrapping(3usize).next_power_of_two(), Wrapping(4)); assert_eq!(Wrapping(200_u8).next_power_of_two(), Wrapping(0)); }