]> git.proxmox.com Git - rustc.git/blob - tests/ui/associated-item/associated-item-duplicate-bounds.rs
New upstream version 1.68.2+dfsg1
[rustc.git] / tests / ui / associated-item / associated-item-duplicate-bounds.rs
1 trait Adapter {
2 const LINKS: usize;
3 }
4
5 struct Foo<A: Adapter> {
6 adapter: A,
7 links: [u32; A::LINKS], // Shouldn't suggest bounds already there.
8 //~^ ERROR generic parameters may not be used in const operations
9 }
10
11 fn main() {}