about summary refs log tree commit diff
path: root/tests/ui/const-generics/generic_const_exprs/serializing_error_guaranteed.rs
blob: 83b73350f83b6fe923eb31612bd3f825b23efce1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
//@ check-pass

// regression test for #136894.
// I (BoxyUwU) don't know what the underlying cause was here

#![feature(generic_const_exprs)]
#![crate_type = "lib"]
#![allow(incomplete_features, dead_code)]

struct X<T>([(); f::<T>()])
where
    [(); f::<T>()]:;

const fn f<T>() -> usize {
    panic!()
}