rust/tests/ui/borrow_deref_ref_unfixable.rs
2025-02-15 13:38:42 +01:00

12 lines
229 B
Rust

//@no-rustfix: overlapping suggestions
#![allow(dead_code, unused_variables)]
fn main() {}
mod should_lint {
fn two_helps() {
let s = &String::new();
let x: &str = &*s;
//~^ borrow_deref_ref
}
}