Closed
Description
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
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.
Metadata
Metadata
Assignees
Labels
Category: Clippy is not doing the correct thingCall for participation: Medium difficulty level problem and requires some initial experience.Issue: The suggestions provided by this Lint cause an ICE/error when appliedLint: Improving, adding or fixing lint suggestionsLint: Lints test codeThese issues are a good way to get started with Clippy