mirror of
https://github.com/rust-lang/rust.git
synced 2025-01-04 11:54:34 +00:00
18 lines
239 B
Rust
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));
|
|
}
|