mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-01 06:51:58 +00:00
8 lines
175 B
Rust
8 lines
175 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);
|
|
}
|