Sign in
android
/
toolchain
/
rustc
/
9cf678059bdfead0671d48dbbb51b152b62d6995
/
.
/
src
/
test
/
ui
/
inline-const
/
const-expr-generic.rs
blob: 3207bfa0e89e6bfc5967ee068e8718d0af709898 [
file
] [
log
] [
blame
]
// check-pass
#![
feature
(
inline_const
)]
fn
foo
<
T
>()
->
usize
{
const
{
std
::
mem
::
size_of
::<
T
>()
}
}
fn
bar
<
const
N
:
usize
>()
->
usize
{
const
{
N
+
1
}
}
fn
main
()
{
foo
::<
i32
>();
bar
::<
1
>();
}