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