<!-- Hi there! Whether you've come to make a suggestion for a new lint, an improvement to an existing lint or to report a bug or a false positive in Clippy, you've come to the right place. If you want to report that Clippy does not compile, please be sure to be using the *latest version* of *Rust nightly*! Compiler plugins are highly unstable and will only work with a nightly Rust for now. If you are but still have a problem, please let us now! Thank you for using Clippy! Write your comment below this line: --> Perhaps related to #2042, but it seemed different enough to open a new issue. With the following code: https://play.rust-lang.org/?gist=35d367db95cd56394d0bb9a05247b94c&version=nightly ```rust fn main() { let a: &str = "abc"; let b: String = "abc".to_owned(); println!("{}", a > &b); } ``` Clippy complains that the reference should be removed, but removing the reference causes the code to stop compiling.