]>
Commit | Line | Data |
---|---|---|
1b1a35ee XL |
1 | #![cfg_attr(full, feature(const_generics))] |
2 | #![cfg_attr(full, allow(incomplete_features))] | |
3dfed10e XL |
3 | |
4 | // All of these three items must be in `lib2` to reproduce the error | |
5 | ||
6 | pub trait TypeFn { | |
7 | type Output; | |
8 | } | |
9 | ||
10 | pub struct GenericType<const B: i8>; | |
11 | ||
12 | // Removing the braces around `42` resolves the crash | |
13 | impl TypeFn for GenericType<{ 42 }> { | |
14 | type Output = (); | |
15 | } |