Sign in
rust
/
rust
/
HEAD
/
.
/
tests
/
ui
/
associated-item
/
associated-item-duplicate-bounds.rs
blob: 242a02353a101325aaa7a0c83771aff97b7dccfb [
file
] [
log
] [
blame
]
trait
Adapter
{
const
LINKS
:
usize
;
}
struct
Foo
<
A
:
Adapter
>
{
adapter
:
A
,
links
:
[
u32
;
A
::
LINKS
],
// Shouldn't suggest bounds already there.
//~^ ERROR generic parameters may not be used in const operations
}
fn
main
()
{}