diff options
Diffstat (limited to 'src/tools/clippy/tests/ui/crashes/ice-6252.rs')
-rw-r--r-- | src/tools/clippy/tests/ui/crashes/ice-6252.rs | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/src/tools/clippy/tests/ui/crashes/ice-6252.rs b/src/tools/clippy/tests/ui/crashes/ice-6252.rs new file mode 100644 index 000000000..0ccf0aae9 --- /dev/null +++ b/src/tools/clippy/tests/ui/crashes/ice-6252.rs @@ -0,0 +1,14 @@ +// originally from glacier fixed/77919.rs +// encountered errors resolving bounds after type-checking +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]; +} |