mirror of
https://github.com/rust-lang/rust.git
synced 2025-06-19 19:17:31 +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() {}
|