2020-03-12 00:00:00 +00:00
|
|
|
error: comparing with a non-unique address of a function item
|
2024-02-17 12:16:29 +00:00
|
|
|
--> tests/ui/fn_address_comparisons.rs:15:13
|
2020-03-12 00:00:00 +00:00
|
|
|
|
|
|
|
|
LL | let _ = f == a;
|
|
|
|
| ^^^^^^
|
|
|
|
|
|
|
|
|
= note: `-D clippy::fn-address-comparisons` implied by `-D warnings`
|
2023-08-01 12:02:21 +00:00
|
|
|
= help: to override `-D warnings` add `#[allow(clippy::fn_address_comparisons)]`
|
2020-03-12 00:00:00 +00:00
|
|
|
|
|
|
|
error: comparing with a non-unique address of a function item
|
2024-02-17 12:16:29 +00:00
|
|
|
--> tests/ui/fn_address_comparisons.rs:18:13
|
2020-03-12 00:00:00 +00:00
|
|
|
|
|
|
|
|
LL | let _ = f != a;
|
|
|
|
| ^^^^^^
|
|
|
|
|
|
|
|
error: aborting due to 2 previous errors
|
|
|
|
|