
Co-authored-by: Boxy UwU <rust@boxyuwu.dev> Co-authored-by: León Orell Valerian Liehr <me@fmease.dev>
11 lines
275 B
Rust
11 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() {}
|