Sign in
rust
/
rust
/
a5a286df89146c64afebc6dcbbd3f61ba67ae53b
/
.
/
tests
/
ui
/
const-generics
/
mgca
/
assoc-const.rs
blob: c49b84edba10820e00f073460fbb182a7474a337 [
file
]
//@ check-pass
#![
feature
(
min_generic_const_args
)]
#![
allow
(
incomplete_features
)]
pub
trait
Tr
<
X
>
{
type
const
SIZE
:
usize
;
}
fn
mk_array
<
T
:
Tr
<
bool
>>(
_x
:
T
)
->
[();
<
T
as
Tr
<
bool
>>::
SIZE
]
{
[();
T
::
SIZE
]
}
fn
main
()
{}