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