rust/tests/ui/issues/issue-47184.rs

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

5 lines
135 B
Rust
Raw Normal View History

2018-02-23 17:28:34 +00:00
fn main() {
let _vec: Vec<&'static String> = vec![&String::new()];
//~^ ERROR temporary value dropped while borrowed [E0716]
2018-02-23 17:28:34 +00:00
}