]> git.lizzy.rs Git - rust.git/blob - tests/ui/functions.stderr
c2f7b76aab4d1fb71497bf82ff7bca5491485510
[rust.git] / tests / ui / functions.stderr
1 error: this function has too many arguments (8/7)
2   --> $DIR/functions.rs:11:1
3    |
4 11 | / fn bad(_one: u32, _two: u32, _three: &str, _four: bool, _five: f32, _six: f32, _seven: bool, _eight: ()) {
5 12 | | }
6    | |_^
7    |
8    = note: `-D clippy::too-many-arguments` implied by `-D warnings`
9
10 error: this function has too many arguments (8/7)
11   --> $DIR/functions.rs:19:5
12    |
13 19 |     fn bad(_one: u32, _two: u32, _three: &str, _four: bool, _five: f32, _six: f32, _seven: bool, _eight: ());
14    |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
15
16 error: this function has too many arguments (8/7)
17   --> $DIR/functions.rs:28:5
18    |
19 28 |     fn bad_method(_one: u32, _two: u32, _three: &str, _four: bool, _five: f32, _six: f32, _seven: bool, _eight: ()) {}
20    |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
21
22 error: this public function dereferences a raw pointer but is not marked `unsafe`
23   --> $DIR/functions.rs:37:34
24    |
25 37 |         println!("{}", unsafe { *p });
26    |                                  ^
27    |
28    = note: `-D clippy::not-unsafe-ptr-arg-deref` implied by `-D warnings`
29
30 error: this public function dereferences a raw pointer but is not marked `unsafe`
31   --> $DIR/functions.rs:38:35
32    |
33 38 |         println!("{:?}", unsafe { p.as_ref() });
34    |                                   ^
35
36 error: this public function dereferences a raw pointer but is not marked `unsafe`
37   --> $DIR/functions.rs:39:33
38    |
39 39 |         unsafe { std::ptr::read(p) };
40    |                                 ^
41
42 error: this public function dereferences a raw pointer but is not marked `unsafe`
43   --> $DIR/functions.rs:50:30
44    |
45 50 |     println!("{}", unsafe { *p });
46    |                              ^
47
48 error: this public function dereferences a raw pointer but is not marked `unsafe`
49   --> $DIR/functions.rs:51:31
50    |
51 51 |     println!("{:?}", unsafe { p.as_ref() });
52    |                               ^
53
54 error: this public function dereferences a raw pointer but is not marked `unsafe`
55   --> $DIR/functions.rs:52:29
56    |
57 52 |     unsafe { std::ptr::read(p) };
58    |                             ^
59
60 error: this public function dereferences a raw pointer but is not marked `unsafe`
61   --> $DIR/functions.rs:61:34
62    |
63 61 |         println!("{}", unsafe { *p });
64    |                                  ^
65
66 error: this public function dereferences a raw pointer but is not marked `unsafe`
67   --> $DIR/functions.rs:62:35
68    |
69 62 |         println!("{:?}", unsafe { p.as_ref() });
70    |                                   ^
71
72 error: this public function dereferences a raw pointer but is not marked `unsafe`
73   --> $DIR/functions.rs:63:33
74    |
75 63 |         unsafe { std::ptr::read(p) };
76    |                                 ^
77
78 error: aborting due to 12 previous errors
79