Sign in
android
/
toolchain
/
rustc
/
f7ad1c480b8dc4097ef67cd82ec1c5b706e10950
/
.
/
src
/
test
/
ui
/
const-generics
/
generic_const_exprs
/
no_dependence.rs
blob: db8dc6ed4434e589bfe4e3fea7653ebbdea3cb4b [
file
]
// check-pass
#![
feature
(
generic_const_exprs
)]
#![
allow
(
incomplete_features
)]
fn
two_args
<
const
N
:
usize
,
const
M
:
usize
>()
->
[
u8
;
M
+
2
]
{
[
0
;
M
+
2
]
}
fn
yay
<
const
N
:
usize
>()
->
[
u8
;
4
]
{
two_args
::<
N
,
2
>()
// no lint
}
fn
main
()
{}