blob: 242a02353a101325aaa7a0c83771aff97b7dccfb (
plain)
1
2
3
4
5
6
7
8
9
10
11
|
trait Adapter {
const LINKS: usize;
}
struct Foo<A: Adapter> {
adapter: A,
links: [u32; A::LINKS], // Shouldn't suggest bounds already there.
//~^ ERROR generic parameters may not be used in const operations
}
fn main() {}
|