about summary refs log tree commit diff
path: root/tests/crashes/111742.rs
blob: fda2a96836f684ee132272f15dae53cab2e5a32e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
//@ 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>;
}