Sign in
fuchsia
/
third_party
/
rust
/
972fef232ec0dd7a3f42091aa6f36cd68aeb3eef
/
.
/
tests
/
ui
/
const-generics
/
array-wrapper-struct-ctor.rs
blob: b94773562e8144d95dfd7444a1488e636f607698 [
file
] [
log
] [
blame
]
//@ run-pass
#![
allow
(
dead_code
)]
struct
ArrayStruct
<
T
,
const
N
:
usize
>
{
data
:
[
T
;
N
],
}
struct
ArrayTuple
<
T
,
const
N
:
usize
>([
T
;
N
]);
fn
main
()
{
let
_
=
ArrayStruct
{
data
:
[
0u32
;
8
]
};
let
_
=
ArrayTuple
([
0u32
;
8
]);
}