1 error: this function has too many arguments (8/7)
2 --> $DIR/functions.rs:17:1
4 LL | fn bad(_one: u32, _two: u32, _three: &str, _four: bool, _five: f32, _six: f32, _seven: bool, _eight: ()) {}
5 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
7 = note: `-D clippy::too-many-arguments` implied by `-D warnings`
9 error: this function has too many arguments (8/7)
10 --> $DIR/functions.rs:34:5
12 LL | fn bad(_one: u32, _two: u32, _three: &str, _four: bool, _five: f32, _six: f32, _seven: bool, _eight: ());
13 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
15 error: this function has too many arguments (8/7)
16 --> $DIR/functions.rs:43:5
18 LL | fn bad_method(_one: u32, _two: u32, _three: &str, _four: bool, _five: f32, _six: f32, _seven: bool, _eight: ()) {}
19 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
21 error: this public function dereferences a raw pointer but is not marked `unsafe`
22 --> $DIR/functions.rs:52:34
24 LL | println!("{}", unsafe { *p });
27 = note: `-D clippy::not-unsafe-ptr-arg-deref` implied by `-D warnings`
29 error: this public function dereferences a raw pointer but is not marked `unsafe`
30 --> $DIR/functions.rs:53:35
32 LL | println!("{:?}", unsafe { p.as_ref() });
35 error: this public function dereferences a raw pointer but is not marked `unsafe`
36 --> $DIR/functions.rs:54:33
38 LL | unsafe { std::ptr::read(p) };
41 error: this public function dereferences a raw pointer but is not marked `unsafe`
42 --> $DIR/functions.rs:65:30
44 LL | println!("{}", unsafe { *p });
47 error: this public function dereferences a raw pointer but is not marked `unsafe`
48 --> $DIR/functions.rs:66:31
50 LL | println!("{:?}", unsafe { p.as_ref() });
53 error: this public function dereferences a raw pointer but is not marked `unsafe`
54 --> $DIR/functions.rs:67:29
56 LL | unsafe { std::ptr::read(p) };
59 error: this public function dereferences a raw pointer but is not marked `unsafe`
60 --> $DIR/functions.rs:76:34
62 LL | println!("{}", unsafe { *p });
65 error: this public function dereferences a raw pointer but is not marked `unsafe`
66 --> $DIR/functions.rs:77:35
68 LL | println!("{:?}", unsafe { p.as_ref() });
71 error: this public function dereferences a raw pointer but is not marked `unsafe`
72 --> $DIR/functions.rs:78:33
74 LL | unsafe { std::ptr::read(p) };
77 error: aborting due to 12 previous errors