Sign in
fuchsia
/
third_party
/
rust
/
9ae1a664f7b947dadb9e97eea7703831d9cd5d31
/
.
/
src
/
test
/
ui
/
associated-const
/
associated-const-array-len.rs
blob: 17d7824273ea713b6d2998ec3806538e60f74be2 [
file
] [
log
] [
blame
]
trait
Foo
{
const
ID
:
usize
;
}
const
X
:
[
i32
;
<
i32
as
Foo
>::
ID
]
=
[
0
,
1
,
2
];
//~^ ERROR the trait bound `i32: Foo` is not satisfied
fn
main
()
{
assert_eq
!(
1
,
X
);
}