blob: 21e6b344586f2dd74268f62fab69345452f6d199 [file] [log] [blame]
#![feature(generic_const_exprs)]
// All of these three items must be in `lib2` to reproduce the error
pub trait TypeFn {
type Output;
}
pub struct GenericType<const B: i8>;
// Removing the braces around `42` resolves the crash
impl TypeFn for GenericType<{ 40 + 2 }> {
type Output = ();
}