Sign in
rust
/
rust-lang
/
rust
/
HEAD
/
.
/
tests
/
ui
/
const-generics
/
generic_arg_infer
/
array-repeat-expr.rs
blob: fff9f2cc94d84f26f2b8e7306fb64d7b66f8c57e [
file
] [
log
] [
blame
]
//@ run-pass
// To avoid having to `or` gate `_` as an expr.
fn
foo
()
->
[
u8
;
3
]
{
let
x
:
[
u8
;
_
]
=
[
0
;
_
];
x
}
fn
main
()
{
assert_eq
!([
0
;
_
],
foo
());
}