rust/src/test/ui/associated-item/associated-item-duplicate-bounds.rs

12 lines
226 B
Rust
Raw Normal View History

2020-02-02 08:55:11 +00:00
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() {}