mirror of
https://github.com/rust-lang/rust.git
synced 2025-06-05 19:58:32 +00:00
12 lines
226 B
Rust
12 lines
226 B
Rust
![]() |
trait Adapter {
|
||
|
const LINKS: usize;
|
||
|
}
|
||
|
|
||
|
struct Foo<A: Adapter> {
|
||
|
adapter: A,
|
||
|
links: [u32; A::LINKS], // Shouldn't suggest bounds already there.
|
||
|
//~^ ERROR: no associated item named `LINKS` found
|
||
|
}
|
||
|
|
||
|
fn main() {}
|