]> git.lizzy.rs Git - rust.git/blob - src/test/ui/associated-item/associated-item-duplicate-bounds.rs
Merge commit '8da837185714cefbb261e93e9846afb11c1dc60e' into sync-rustfmt-subtree
[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() {}