Closed
Description
I expected this code to trigger an "integer arithmetic" warning:
#![warn(clippy::integer_arithmetic)]
pub fn foo(x: &i32) -> i32 {
let a = 5;
a+x
}
However, no such warning is emitted.
I expected this code to trigger an "integer arithmetic" warning:
#![warn(clippy::integer_arithmetic)]
pub fn foo(x: &i32) -> i32 {
let a = 5;
a+x
}
However, no such warning is emitted.