2023-07-27 06:40:22 -05:00
|
|
|
//@no-rustfix: overlapping suggestions
|
2022-06-01 10:32:26 -05:00
|
|
|
#![allow(dead_code, unused_variables)]
|
|
|
|
|
|
|
|
fn main() {}
|
|
|
|
|
|
|
|
mod should_lint {
|
|
|
|
fn two_helps() {
|
|
|
|
let s = &String::new();
|
|
|
|
let x: &str = &*s;
|
2023-07-28 14:35:48 -05:00
|
|
|
//~^ ERROR: deref on an immutable reference
|
|
|
|
//~| NOTE: `-D clippy::borrow-deref-ref` implied by `-D warnings`
|
2022-06-01 10:32:26 -05:00
|
|
|
}
|
|
|
|
}
|