summaryrefslogtreecommitdiffstats
path: root/src/tools/clippy/tests/ui/borrow_deref_ref_unfixable.rs
blob: a8e2bbfef0f5aae09d2ea5058f645c955c427543 (plain)
1
2
3
4
5
6
7
8
9
10
#![allow(dead_code, unused_variables)]

fn main() {}

mod should_lint {
    fn two_helps() {
        let s = &String::new();
        let x: &str = &*s;
    }
}