1 #![warn(clippy::disallowed_type)]
7 use std::sync::atomic::AtomicU32;
8 use std::time::Instant as Sneaky;
12 fn bad_return_type() -> fn() -> Sneaky {
16 fn bad_arg_type(_: impl Fn(Sneaky) -> foo::atomic::AtomicU32) {}
18 fn trait_obj(_: &dyn std::io::Read) {}
20 fn full_and_single_path_prim(_: usize, _: bool) {}
22 fn const_generics<const C: usize>() {}
24 struct GenArg<const U: usize>([u8; U]);
26 static BAD: foo::atomic::AtomicPtr<()> = foo::atomic::AtomicPtr::new(std::ptr::null_mut());
28 #[allow(clippy::diverging_sub_expression)]
30 let _: std::collections::HashMap<(), ()> = std::collections::HashMap::new();
31 let _ = Sneaky::now();
32 let _ = foo::atomic::AtomicU32::new(0);
33 static FOO: std::sync::atomic::AtomicU32 = foo::atomic::AtomicU32::new(1);
34 let _: std::collections::BTreeMap<(), syn::TypePath> = Default::default();
35 let _ = syn::Ident::new("", todo!());
37 let _: usize = 64_usize;