rust/tests/ui/useless_asref.stderr

75 lines
2.2 KiB
Plaintext
Raw Normal View History

2017-10-20 10:39:20 -05:00
error: this call to `as_ref` does nothing
2018-10-06 11:18:06 -05:00
--> $DIR/useless_asref.rs:43:18
2017-10-20 10:39:20 -05:00
|
2018-10-06 11:18:06 -05:00
43 | foo_rstr(rstr.as_ref());
2017-10-20 10:39:20 -05:00
| ^^^^^^^^^^^^^ help: try this: `rstr`
|
note: lint level defined here
2018-10-06 11:18:06 -05:00
--> $DIR/useless_asref.rs:13:9
2017-10-20 10:39:20 -05:00
|
2018-10-06 11:18:06 -05:00
13 | #![deny(clippy::useless_asref)]
| ^^^^^^^^^^^^^^^^^^^^^
2017-10-20 10:39:20 -05:00
error: this call to `as_ref` does nothing
2018-10-06 11:18:06 -05:00
--> $DIR/useless_asref.rs:45:20
2017-10-20 10:39:20 -05:00
|
2018-10-06 11:18:06 -05:00
45 | foo_rslice(rslice.as_ref());
2017-10-20 10:39:20 -05:00
| ^^^^^^^^^^^^^^^ help: try this: `rslice`
error: this call to `as_mut` does nothing
2018-10-06 11:18:06 -05:00
--> $DIR/useless_asref.rs:49:21
2017-10-20 10:39:20 -05:00
|
2018-10-06 11:18:06 -05:00
49 | foo_mrslice(mrslice.as_mut());
2017-10-20 10:39:20 -05:00
| ^^^^^^^^^^^^^^^^ help: try this: `mrslice`
error: this call to `as_ref` does nothing
2018-10-06 11:18:06 -05:00
--> $DIR/useless_asref.rs:51:20
2017-10-20 10:39:20 -05:00
|
2018-10-06 11:18:06 -05:00
51 | foo_rslice(mrslice.as_ref());
2017-10-20 10:39:20 -05:00
| ^^^^^^^^^^^^^^^^ help: try this: `mrslice`
error: this call to `as_ref` does nothing
2018-10-06 11:18:06 -05:00
--> $DIR/useless_asref.rs:58:20
2017-10-20 10:39:20 -05:00
|
2018-10-06 11:18:06 -05:00
58 | foo_rslice(rrrrrslice.as_ref());
2017-10-20 10:39:20 -05:00
| ^^^^^^^^^^^^^^^^^^^ help: try this: `rrrrrslice`
error: this call to `as_ref` does nothing
2018-10-06 11:18:06 -05:00
--> $DIR/useless_asref.rs:60:18
2017-10-20 10:39:20 -05:00
|
2018-10-06 11:18:06 -05:00
60 | foo_rstr(rrrrrstr.as_ref());
2017-10-20 10:39:20 -05:00
| ^^^^^^^^^^^^^^^^^ help: try this: `rrrrrstr`
error: this call to `as_mut` does nothing
2018-10-06 11:18:06 -05:00
--> $DIR/useless_asref.rs:65:21
2017-10-20 10:39:20 -05:00
|
2018-10-06 11:18:06 -05:00
65 | foo_mrslice(mrrrrrslice.as_mut());
2017-10-20 10:39:20 -05:00
| ^^^^^^^^^^^^^^^^^^^^ help: try this: `mrrrrrslice`
error: this call to `as_ref` does nothing
2018-10-06 11:18:06 -05:00
--> $DIR/useless_asref.rs:67:20
2017-10-20 10:39:20 -05:00
|
2018-10-06 11:18:06 -05:00
67 | foo_rslice(mrrrrrslice.as_ref());
2017-10-20 10:39:20 -05:00
| ^^^^^^^^^^^^^^^^^^^^ help: try this: `mrrrrrslice`
error: this call to `as_ref` does nothing
2018-10-06 11:18:06 -05:00
--> $DIR/useless_asref.rs:70:16
2017-10-20 10:39:20 -05:00
|
2018-10-06 11:18:06 -05:00
70 | foo_rrrrmr((&&&&MoreRef).as_ref());
2017-10-20 10:39:20 -05:00
| ^^^^^^^^^^^^^^^^^^^^^^ help: try this: `(&&&&MoreRef)`
2017-10-21 12:42:35 -05:00
error: this call to `as_mut` does nothing
2018-10-06 11:18:06 -05:00
--> $DIR/useless_asref.rs:116:13
2017-10-21 12:42:35 -05:00
|
2018-10-06 11:18:06 -05:00
116 | foo_mrt(mrt.as_mut());
2017-10-21 12:42:35 -05:00
| ^^^^^^^^^^^^ help: try this: `mrt`
error: this call to `as_ref` does nothing
2018-10-06 11:18:06 -05:00
--> $DIR/useless_asref.rs:118:12
2017-10-21 12:42:35 -05:00
|
2018-10-06 11:18:06 -05:00
118 | foo_rt(mrt.as_ref());
2017-10-21 12:42:35 -05:00
| ^^^^^^^^^^^^ help: try this: `mrt`
2018-01-16 10:06:27 -06:00
error: aborting due to 11 previous errors