mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-01 06:51:58 +00:00
11 lines
238 B
Rust
11 lines
238 B
Rust
// Regression test for issue #80062 (fixed by `min_const_generics`)
|
|
|
|
fn sof<T>() -> T { unimplemented!() }
|
|
|
|
fn test<T>() {
|
|
let _: [u8; sof::<T>()];
|
|
//~^ ERROR generic parameters may not be used in const operations
|
|
}
|
|
|
|
fn main() {}
|