mirror of
https://github.com/rust-lang/rust.git
synced 2025-10-29 03:53:55 +00:00
Co-authored-by: Boxy UwU <rust@boxyuwu.dev> Co-authored-by: León Orell Valerian Liehr <me@fmease.dev>
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() {}
|