mirror of
https://github.com/rust-lang/rust-clippy
synced 2024-11-26 14:40:32 +00:00
17 lines
531 B
Text
17 lines
531 B
Text
error: comparing with a non-unique address of a function item
|
|
--> tests/ui/fn_address_comparisons.rs:15:13
|
|
|
|
|
LL | let _ = f == a;
|
|
| ^^^^^^
|
|
|
|
|
= note: `-D clippy::fn-address-comparisons` implied by `-D warnings`
|
|
= help: to override `-D warnings` add `#[allow(clippy::fn_address_comparisons)]`
|
|
|
|
error: comparing with a non-unique address of a function item
|
|
--> tests/ui/fn_address_comparisons.rs:18:13
|
|
|
|
|
LL | let _ = f != a;
|
|
| ^^^^^^
|
|
|
|
error: aborting due to 2 previous errors
|
|
|