]> git.lizzy.rs Git - rust.git/blobdiff - tests/ui/useless_attribute.fixed
Fix `#[expect]` for `clippy::ptr_arg`
[rust.git] / tests / ui / useless_attribute.fixed
index ce58a80347b558ef7a46b48b2883def9f0455f71..c23231a99e9f049015d44694fbd8d58ee2b8c1c3 100644 (file)
@@ -57,6 +57,12 @@ pub use std::io::prelude::*;
 #[allow(clippy::enum_glob_use)]
 pub use std::cmp::Ordering::*;
 
+// don't lint on clippy::redundant_pub_crate
+mod c {
+    #[allow(clippy::redundant_pub_crate)]
+    pub(crate) struct S;
+}
+
 fn test_indented_attr() {
     #![allow(clippy::almost_swapped)]
     use std::collections::HashSet;