summaryrefslogtreecommitdiffstats
path: root/tests/ui/issues/issue-47184.rs
blob: 2f78ce0002ba3308bc713841993b9eccf873c3bd (plain)
1
2
3
4
fn main() {
    let _vec: Vec<&'static String> = vec![&String::new()];
    //~^ ERROR temporary value dropped while borrowed [E0716]
}