mirror of
https://git.proxmox.com/git/rustc
synced 2025-05-29 21:27:18 +00:00
12 lines
241 B
Rust
12 lines
241 B
Rust
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() {}
|