Sign in
android
/
toolchain
/
rustc
/
refs/heads/main
/
.
/
tests
/
ui
/
rfcs
/
rfc-2306-convert-id
/
convert-id-const-with-gate.rs
blob: 30ef39038a068ce47c904163cba054da4d74d7a5 [
file
] [
log
] [
blame
] [
edit
]
// 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
);
}