mirror of
https://github.com/rust-lang/rust-clippy
synced 2024-11-27 23:20:39 +00:00
11 lines
284 B
Text
11 lines
284 B
Text
|
warning: taken reference of both operands, which is done automatically by the operator anyway
|
||
|
--> $DIR/op_ref.rs:13:15
|
||
|
|
|
||
|
13 | let foo = &5 - &6;
|
||
|
| ^^^^^^^
|
||
|
|
|
||
|
= note: #[warn(op_ref)] on by default
|
||
|
help: use the values directly
|
||
|
| let foo = 5 - 6;
|
||
|
|