2021-08-27 11:04:57 -05:00
|
|
|
#![feature(generic_const_exprs)]
|
|
|
|
#![allow(incomplete_features)]
|
2020-07-16 05:32:43 -05:00
|
|
|
|
|
|
|
// 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
|
2021-08-27 11:04:57 -05:00
|
|
|
impl TypeFn for GenericType<{ 40 + 2 }> {
|
2020-07-16 05:32:43 -05:00
|
|
|
type Output = ();
|
|
|
|
}
|