rust/tests/ui/rfcs/rfc-2306-convert-id/convert-id-const-with-gate.rs
2024-02-16 20:02:50 +00:00

8 lines
176 B
Rust

// This test should pass since 'identity' is const fn.
//@ build-pass (FIXME(62277): could be check-pass?)
fn main() {
const _FOO: u8 = ::std::convert::identity(42u8);
}