rust/src/test/ui/consts/const-eval/double_promotion.rs
2020-03-12 17:22:44 +01:00

18 lines
239 B
Rust

// check-pass
#![feature(const_fn, rustc_attrs)]
#[rustc_args_required_const(0)]
pub const fn a(value: u8) -> u8 {
value
}
#[rustc_args_required_const(0)]
pub fn b(_: u8) {
unimplemented!()
}
fn main() {
let _ = b(a(0));
}