rust/tests/ui/binop/binary-op-suggest-deref.rs

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

9 lines
124 B
Rust
Raw Normal View History

2023-11-13 13:07:30 -08:00
// Issue #52544
// run-rustfix
fn main() {
let i: &i64 = &1;
if i < 0 {}
//~^ ERROR mismatched types [E0308]
}