Sign in
◑
Theme
rust
/
rust
/
2a61ba8577ed3c3e1cfeb433d06cf5464ff2fdf3
/
.
/
tests
/
ui
/
const-generics
/
function_arg_const_generics
/
non-const-argument.rs
blob: 95c2aabd5f7d08ff1e17e0411dea0b840efd102f [
file
]
#![
feature
(
function_arg_const_generics
,
gca_min_const_items
)]
fn
foo
(
const
N
:
usize
)
->
[
u8
;
N
]
{
[
0
;
N
]
}
fn
main
()
{
let
x
=
3
;
let
_
=
foo
(
x
);
//~ ERROR
}