]> git.lizzy.rs Git - rust.git/blob - tests/ui/associated-item/associated-item-duplicate-bounds.rs
Rollup merge of #103702 - WaffleLapkin:lift-sized-bounds-from-pointer-methods-where...
[rust.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() {}