summary refs log tree commit diff
path: root/src/test/ui/issues/issue-47184.rs
blob: 04f1146a8f8ff45f5a2cb72b8964e24fd340bbd3 (plain)
1
2
3
4
5
6
#![feature(nll)]

fn main() {
    let _vec: Vec<&'static String> = vec![&String::new()];
    //~^ ERROR temporary value dropped while borrowed [E0716]
}