mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-30 10:45:18 +00:00
13 lines
310 B
Rust
13 lines
310 B
Rust
//@ known-bug: #111742
|
|
// ignore-tidy-linelength
|
|
|
|
#![allow(incomplete_features)]
|
|
#![feature(generic_const_exprs)]
|
|
|
|
const CONST: u32 = 0;
|
|
struct Test<const N: u32, const M: u32 = { CONST/* Must be a const and not a Literal */ }> where [(); N as usize]: , ([u32; N as usize]);
|
|
|
|
fn main() {
|
|
let _: Test<1>;
|
|
}
|