]> git.lizzy.rs Git - rust.git/blobdiff - tests/ui/mismatching_type_param_order.rs
Auto merge of #9684 - kraktus:ref_option_ref, r=xFrednet
[rust.git] / tests / ui / mismatching_type_param_order.rs
index 8f286c9304ccb4b3859964c2292846bd376f8b76..40c1fcae1fd3fb172004276a8f8a8df3ae8821c6 100644 (file)
@@ -1,5 +1,5 @@
 #![warn(clippy::mismatching_type_param_order)]
-#![allow(clippy::blacklisted_name)]
+#![allow(clippy::disallowed_names)]
 
 fn main() {
     struct Foo<A, B> {
@@ -57,4 +57,8 @@ impl<A, B> FooUnion<A, B>
         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> {}
 }