Sign in
android
/
toolchain
/
rustc
/
bcf972c0208490b0eb3ce3c170c2db486ba945b3
/
.
/
src
/
test
/
ui
/
const-generics
/
const-fn-with-const-param.rs
blob: 161bfaab48aded5312667e89da11f1c9fe9e729b [
file
] [
log
] [
blame
]
// Checks that `const fn` with const params can be used.
// run-pass
const
fn
const_u32_identity
<
const
X
:
u32
>()
->
u32
{
X
}
fn
main
()
{
assert_eq
!(
const_u32_identity
::<
18
>(),
18
);
}