mirror of
https://git.proxmox.com/git/rustc
synced 2025-08-17 02:40:45 +00:00
12 lines
275 B
Rust
12 lines
275 B
Rust
trait Trait {
|
|
const ASSOC: usize;
|
|
}
|
|
|
|
// FIXME(min_generic_const_args): implement support for this, behind the feature gate
|
|
fn foo<T: Trait>() -> [u8; <T as Trait>::ASSOC] {
|
|
//~^ ERROR generic parameters may not be used in const operations
|
|
loop {}
|
|
}
|
|
|
|
fn main() {}
|