]> git.lizzy.rs Git - rust.git/blob - tests/ui/functions.stderr
Merge pull request #3269 from rust-lang-nursery/relicense
[rust.git] / tests / ui / functions.stderr
1 error: this function has too many arguments (8/7)
2   --> $DIR/functions.rs:21:1
3    |
4 21 | / fn bad(_one: u32, _two: u32, _three: &str, _four: bool, _five: f32, _six: f32, _seven: bool, _eight: ()) {
5 22 | | }
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:29:5
12    |
13 29 |     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:38:5
18    |
19 38 |     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:47:34
24    |
25 47 |         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:48:35
32    |
33 48 |         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:49:33
38    |
39 49 |         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:60:30
44    |
45 60 |     println!("{}", unsafe { *p });
46    |                              ^
47
48 error: this public function dereferences a raw pointer but is not marked `unsafe`
49   --> $DIR/functions.rs:61:31
50    |
51 61 |     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:62:29
56    |
57 62 |     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:71:34
62    |
63 71 |         println!("{}", unsafe { *p });
64    |                                  ^
65
66 error: this public function dereferences a raw pointer but is not marked `unsafe`
67   --> $DIR/functions.rs:72:35
68    |
69 72 |         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:73:33
74    |
75 73 |         unsafe { std::ptr::read(p) };
76    |                                 ^
77
78 error: aborting due to 12 previous errors
79