2020-10-28 08:45:21 -05:00
|
|
|
// originally from glacier fixed/77919.rs
|
|
|
|
// encountered errors resolving bounds after type-checking
|
2023-07-27 06:40:22 -05:00
|
|
|
//@no-rustfix
|
2020-10-28 08:45:21 -05:00
|
|
|
trait TypeVal<T> {
|
|
|
|
const VAL: T;
|
|
|
|
}
|
|
|
|
struct Five;
|
|
|
|
struct Multiply<N, M> {
|
|
|
|
_n: PhantomData,
|
|
|
|
}
|
|
|
|
impl<N, M> TypeVal<usize> for Multiply<N, M> where N: TypeVal<VAL> {}
|
|
|
|
|
|
|
|
fn main() {
|
|
|
|
[1; <Multiply<Five, Five>>::VAL];
|
|
|
|
}
|