]> git.proxmox.com Git - rustc.git/blob - src/tools/clippy/tests/ui/needless_arbitrary_self_type.stderr
New upstream version 1.52.1+dfsg1
[rustc.git] / src / tools / clippy / tests / ui / needless_arbitrary_self_type.stderr
1 error: the type of the `self` parameter does not need to be arbitrary
2 --> $DIR/needless_arbitrary_self_type.rs:12:16
3 |
4 LL | pub fn bad(self: Self) {
5 | ^^^^^^^^^^ help: consider to change this parameter to: `self`
6 |
7 = note: `-D clippy::needless-arbitrary-self-type` implied by `-D warnings`
8
9 error: the type of the `self` parameter does not need to be arbitrary
10 --> $DIR/needless_arbitrary_self_type.rs:20:20
11 |
12 LL | pub fn mut_bad(mut self: Self) {
13 | ^^^^^^^^^^^^^^ help: consider to change this parameter to: `mut self`
14
15 error: the type of the `self` parameter does not need to be arbitrary
16 --> $DIR/needless_arbitrary_self_type.rs:28:20
17 |
18 LL | pub fn ref_bad(self: &Self) {
19 | ^^^^^^^^^^^ help: consider to change this parameter to: `&self`
20
21 error: the type of the `self` parameter does not need to be arbitrary
22 --> $DIR/needless_arbitrary_self_type.rs:36:38
23 |
24 LL | pub fn ref_bad_with_lifetime<'a>(self: &'a Self) {
25 | ^^^^^^^^^^^^^^ help: consider to change this parameter to: `&'a self`
26
27 error: the type of the `self` parameter does not need to be arbitrary
28 --> $DIR/needless_arbitrary_self_type.rs:44:24
29 |
30 LL | pub fn mut_ref_bad(self: &mut Self) {
31 | ^^^^^^^^^^^^^^^ help: consider to change this parameter to: `&mut self`
32
33 error: the type of the `self` parameter does not need to be arbitrary
34 --> $DIR/needless_arbitrary_self_type.rs:52:42
35 |
36 LL | pub fn mut_ref_bad_with_lifetime<'a>(self: &'a mut Self) {
37 | ^^^^^^^^^^^^^^^^^^ help: consider to change this parameter to: `&'a mut self`
38
39 error: aborting due to 6 previous errors
40