about summary refs log tree commit diff
path: root/tests
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2022-07-18 10:13:39 +0000
committerbors <bors@rust-lang.org>2022-07-18 10:13:39 +0000
commitf4c9183531db5e78ab02caacdfd8a5312f6369a4 (patch)
treed2fc0b2a4d0176489808497fd3dde49c4f66bcf6 /tests
parent79a0d234fe9fc27961dc5fb9ff7b4c8806c71438 (diff)
parent8cf39a8c1908709831ab27937a53a2d6d0278ff6 (diff)
downloadrust-f4c9183531db5e78ab02caacdfd8a5312f6369a4.tar.gz
rust-f4c9183531db5e78ab02caacdfd8a5312f6369a4.zip
Auto merge of #9146 - arieluy:type_params, r=dswij
Fix `mismatching_type_param_order` false positive

changelog: Don't lint `mismatching_type_param_order` on complicated generic params

fixes #8962
Diffstat (limited to 'tests')
-rw-r--r--tests/ui/mismatching_type_param_order.rs4
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/ui/mismatching_type_param_order.rs b/tests/ui/mismatching_type_param_order.rs
index 8f286c9304c..8c0da84d8e9 100644
--- a/tests/ui/mismatching_type_param_order.rs
+++ b/tests/ui/mismatching_type_param_order.rs
@@ -57,4 +57,8 @@ fn main() {
         B: Copy,
     {
     }
+
+    // if the types are complicated, do not lint
+    impl<K, V, B> Foo<(K, V), B> {}
+    impl<K, V, A> Foo<(K, V), A> {}
 }