1 error: `std::sync::atomic::AtomicU32` is not allowed according to config
2 --> $DIR/conf_disallowed_type.rs:7:1
4 LL | use std::sync::atomic::AtomicU32;
5 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
7 = note: `-D clippy::disallowed-type` implied by `-D warnings`
9 error: `std::time::Instant` is not allowed according to config
10 --> $DIR/conf_disallowed_type.rs:8:1
12 LL | use std::time::Instant as Sneaky;
13 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
15 error: `std::time::Instant` is not allowed according to config
16 --> $DIR/conf_disallowed_type.rs:12:33
18 LL | fn bad_return_type() -> fn() -> Sneaky {
21 error: `std::time::Instant` is not allowed according to config
22 --> $DIR/conf_disallowed_type.rs:16:28
24 LL | fn bad_arg_type(_: impl Fn(Sneaky) -> foo::atomic::AtomicU32) {
27 error: `std::sync::atomic::AtomicU32` is not allowed according to config
28 --> $DIR/conf_disallowed_type.rs:16:39
30 LL | fn bad_arg_type(_: impl Fn(Sneaky) -> foo::atomic::AtomicU32) {
31 | ^^^^^^^^^^^^^^^^^^^^^^
33 error: `std::io::Read` is not allowed according to config
34 --> $DIR/conf_disallowed_type.rs:20:22
36 LL | fn trait_obj(_: &dyn std::io::Read) {
39 error: `std::collections::HashMap` is not allowed according to config
40 --> $DIR/conf_disallowed_type.rs:28:48
42 LL | let _: std::collections::HashMap<(), ()> = std::collections::HashMap::new();
43 | ^^^^^^^^^^^^^^^^^^^^^^^^^
45 error: `std::collections::HashMap` is not allowed according to config
46 --> $DIR/conf_disallowed_type.rs:28:12
48 LL | let _: std::collections::HashMap<(), ()> = std::collections::HashMap::new();
49 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
51 error: `std::time::Instant` is not allowed according to config
52 --> $DIR/conf_disallowed_type.rs:29:13
54 LL | let _ = Sneaky::now();
57 error: `std::sync::atomic::AtomicU32` is not allowed according to config
58 --> $DIR/conf_disallowed_type.rs:30:13
60 LL | let _ = foo::atomic::AtomicU32::new(0);
61 | ^^^^^^^^^^^^^^^^^^^^^^
63 error: `std::sync::atomic::AtomicU32` is not allowed according to config
64 --> $DIR/conf_disallowed_type.rs:31:17
66 LL | static FOO: std::sync::atomic::AtomicU32 = foo::atomic::AtomicU32::new(1);
67 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
69 error: `std::sync::atomic::AtomicU32` is not allowed according to config
70 --> $DIR/conf_disallowed_type.rs:31:48
72 LL | static FOO: std::sync::atomic::AtomicU32 = foo::atomic::AtomicU32::new(1);
73 | ^^^^^^^^^^^^^^^^^^^^^^
75 error: `syn::TypePath` is not allowed according to config
76 --> $DIR/conf_disallowed_type.rs:32:43
78 LL | let _: std::collections::BTreeMap<(), syn::TypePath> = Default::default();
81 error: `proc_macro2::Ident` is not allowed according to config
82 --> $DIR/conf_disallowed_type.rs:33:13
84 LL | let _ = syn::Ident::new("", todo!());
87 error: aborting due to 14 previous errors