]> git.lizzy.rs Git - rust.git/blob - src/test/ui/associated-item/associated-item-duplicate-bounds.rs
Rollup merge of #80232 - bugadani:roundtrip, r=estebank
[rust.git] / src / test / 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() {}