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
--> $DIR/useless_asref.rs:46:18
2017-10-20 10:39:20 -05:00
|
2018-12-27 09:57:55 -06:00
LL | foo_rstr(rstr.as_ref());
| ^^^^^^^^^^^^^ help: try: `rstr`
2017-10-20 10:39:20 -05:00
|
2020-01-31 13:21:10 -06:00
note: the lint level is defined here
--> $DIR/useless_asref.rs:1:9
2017-10-20 10:39:20 -05:00
|
2018-12-27 09:57:55 -06:00
LL | #![deny(clippy::useless_asref)]
| ^^^^^^^^^^^^^^^^^^^^^
2017-10-20 10:39:20 -05:00
error: this call to `as_ref` does nothing
--> $DIR/useless_asref.rs:48:20
2017-10-20 10:39:20 -05:00
|
2018-12-27 09:57:55 -06:00
LL | foo_rslice(rslice.as_ref());
| ^^^^^^^^^^^^^^^ help: try: `rslice`
2017-10-20 10:39:20 -05:00
error: this call to `as_mut` does nothing
--> $DIR/useless_asref.rs:52:21
2017-10-20 10:39:20 -05:00
|
2018-12-27 09:57:55 -06:00
LL | foo_mrslice(mrslice.as_mut());
| ^^^^^^^^^^^^^^^^ help: try: `mrslice`
2017-10-20 10:39:20 -05:00
error: this call to `as_ref` does nothing
--> $DIR/useless_asref.rs:54:20
2017-10-20 10:39:20 -05:00
|
2018-12-27 09:57:55 -06:00
LL | foo_rslice(mrslice.as_ref());
| ^^^^^^^^^^^^^^^^ help: try: `mrslice`
2017-10-20 10:39:20 -05:00
error: this call to `as_ref` does nothing
--> $DIR/useless_asref.rs:61:20
2017-10-20 10:39:20 -05:00
|
2018-12-27 09:57:55 -06:00
LL | foo_rslice(rrrrrslice.as_ref());
| ^^^^^^^^^^^^^^^^^^^ help: try: `rrrrrslice`
2017-10-20 10:39:20 -05:00
error: this call to `as_ref` does nothing
--> $DIR/useless_asref.rs:63:18
2017-10-20 10:39:20 -05:00
|
2018-12-27 09:57:55 -06:00
LL | foo_rstr(rrrrrstr.as_ref());
| ^^^^^^^^^^^^^^^^^ help: try: `rrrrrstr`
2017-10-20 10:39:20 -05:00
error: this call to `as_mut` does nothing
--> $DIR/useless_asref.rs:68:21
2017-10-20 10:39:20 -05:00
|
2018-12-27 09:57:55 -06:00
LL | foo_mrslice(mrrrrrslice.as_mut());
| ^^^^^^^^^^^^^^^^^^^^ help: try: `mrrrrrslice`
2017-10-20 10:39:20 -05:00
error: this call to `as_ref` does nothing
--> $DIR/useless_asref.rs:70:20
2017-10-20 10:39:20 -05:00
|
2018-12-27 09:57:55 -06:00
LL | foo_rslice(mrrrrrslice.as_ref());
| ^^^^^^^^^^^^^^^^^^^^ help: try: `mrrrrrslice`
2017-10-20 10:39:20 -05:00
error: this call to `as_ref` does nothing
--> $DIR/useless_asref.rs:74:16
2017-10-20 10:39:20 -05:00
|
2018-12-27 09:57:55 -06:00
LL | foo_rrrrmr((&&&&MoreRef).as_ref());
| ^^^^^^^^^^^^^^^^^^^^^^ help: try: `(&&&&MoreRef)`
2017-10-20 10:39:20 -05:00
2017-10-21 12:42:35 -05:00
error: this call to `as_mut` does nothing
--> $DIR/useless_asref.rs:124:13
2018-12-27 09:57:55 -06:00
|
LL | foo_mrt(mrt.as_mut());
| ^^^^^^^^^^^^ help: try: `mrt`
2017-10-21 12:42:35 -05:00
error: this call to `as_ref` does nothing
--> $DIR/useless_asref.rs:126:12
2018-12-27 09:57:55 -06:00
|
LL | foo_rt(mrt.as_ref());
| ^^^^^^^^^^^^ help: try: `mrt`
2017-10-21 12:42:35 -05:00
2018-01-16 10:06:27 -06:00
error: aborting due to 11 previous errors