rust/tests/ui/useless_asref.stderr

75 lines
2.2 KiB
Plaintext
Raw Normal View History

2017-10-20 17:39:20 +02:00
error: this call to `as_ref` does nothing
2017-10-21 19:42:35 +02:00
--> $DIR/useless_asref.rs:31:18
2017-10-20 17:39:20 +02:00
|
2017-10-21 19:42:35 +02:00
31 | foo_rstr(rstr.as_ref());
2017-10-20 17:39:20 +02:00
| ^^^^^^^^^^^^^ help: try this: `rstr`
|
note: lint level defined here
--> $DIR/useless_asref.rs:1:9
|
1 | #![deny(useless_asref)]
| ^^^^^^^^^^^^^
error: this call to `as_ref` does nothing
2017-10-21 19:42:35 +02:00
--> $DIR/useless_asref.rs:33:20
2017-10-20 17:39:20 +02:00
|
2017-10-21 19:42:35 +02:00
33 | foo_rslice(rslice.as_ref());
2017-10-20 17:39:20 +02:00
| ^^^^^^^^^^^^^^^ help: try this: `rslice`
error: this call to `as_mut` does nothing
2017-10-21 19:42:35 +02:00
--> $DIR/useless_asref.rs:37:21
2017-10-20 17:39:20 +02:00
|
2017-10-21 19:42:35 +02:00
37 | foo_mrslice(mrslice.as_mut());
2017-10-20 17:39:20 +02:00
| ^^^^^^^^^^^^^^^^ help: try this: `mrslice`
error: this call to `as_ref` does nothing
2017-10-21 19:42:35 +02:00
--> $DIR/useless_asref.rs:39:20
2017-10-20 17:39:20 +02:00
|
2017-10-21 19:42:35 +02:00
39 | foo_rslice(mrslice.as_ref());
2017-10-20 17:39:20 +02:00
| ^^^^^^^^^^^^^^^^ help: try this: `mrslice`
error: this call to `as_ref` does nothing
2017-10-21 19:42:35 +02:00
--> $DIR/useless_asref.rs:46:20
2017-10-20 17:39:20 +02:00
|
2017-10-21 19:42:35 +02:00
46 | foo_rslice(rrrrrslice.as_ref());
2017-10-20 17:39:20 +02:00
| ^^^^^^^^^^^^^^^^^^^ help: try this: `rrrrrslice`
error: this call to `as_ref` does nothing
2017-10-21 19:42:35 +02:00
--> $DIR/useless_asref.rs:48:18
2017-10-20 17:39:20 +02:00
|
2017-10-21 19:42:35 +02:00
48 | foo_rstr(rrrrrstr.as_ref());
2017-10-20 17:39:20 +02:00
| ^^^^^^^^^^^^^^^^^ help: try this: `rrrrrstr`
error: this call to `as_mut` does nothing
2017-10-21 19:42:35 +02:00
--> $DIR/useless_asref.rs:53:21
2017-10-20 17:39:20 +02:00
|
2017-10-21 19:42:35 +02:00
53 | foo_mrslice(mrrrrrslice.as_mut());
2017-10-20 17:39:20 +02:00
| ^^^^^^^^^^^^^^^^^^^^ help: try this: `mrrrrrslice`
error: this call to `as_ref` does nothing
2017-10-21 19:42:35 +02:00
--> $DIR/useless_asref.rs:55:20
2017-10-20 17:39:20 +02:00
|
2017-10-21 19:42:35 +02:00
55 | foo_rslice(mrrrrrslice.as_ref());
2017-10-20 17:39:20 +02:00
| ^^^^^^^^^^^^^^^^^^^^ help: try this: `mrrrrrslice`
error: this call to `as_ref` does nothing
2017-10-21 19:42:35 +02:00
--> $DIR/useless_asref.rs:58:16
2017-10-20 17:39:20 +02:00
|
2017-10-21 19:42:35 +02:00
58 | foo_rrrrmr((&&&&MoreRef).as_ref());
2017-10-20 17:39:20 +02:00
| ^^^^^^^^^^^^^^^^^^^^^^ help: try this: `(&&&&MoreRef)`
2017-10-21 19:42:35 +02:00
error: this call to `as_mut` does nothing
--> $DIR/useless_asref.rs:104:13
|
104 | foo_mrt(mrt.as_mut());
| ^^^^^^^^^^^^ help: try this: `mrt`
error: this call to `as_ref` does nothing
--> $DIR/useless_asref.rs:106:12
|
106 | foo_rt(mrt.as_ref());
| ^^^^^^^^^^^^ help: try this: `mrt`
2018-01-16 17:06:27 +01:00
error: aborting due to 11 previous errors