Sign in
android
/
toolchain
/
rustc
/
bcf972c0208490b0eb3ce3c170c2db486ba945b3
/
.
/
src
/
test
/
ui
/
const-generics
/
issues
/
issue-62187-encountered-polymorphic-const.rs
blob: fa76aeae901d183c7d9010982665fa385c77ab3c [
file
] [
log
] [
blame
]
// run-pass
pub
trait
BitLen
:
Sized
{
const
BIT_LEN
:
usize
;
}
impl
<
const
L
:
usize
>
BitLen
for
[
u8
;
L
]
{
const
BIT_LEN
:
usize
=
8
*
L
;
}
fn
main
()
{
let
_foo
=
<[
u8
;
2
]>::
BIT_LEN
;
}