]> git.proxmox.com Git - rustc.git/blame - src/test/ui/borrowck/borrowck-storage-dead.rs
Update unsuspicious file list
[rustc.git] / src / test / ui / borrowck / borrowck-storage-dead.rs
CommitLineData
abe05a73
XL
1fn ok() {
2 loop {
3 let _x = 1;
4 }
5}
5bcae85e 6
ff7c6d11
XL
7fn also_ok() {
8 loop {
9 let _x = String::new();
10 }
11}
12
abe05a73
XL
13fn fail() {
14 loop {
15 let x: i32;
48663c56 16 let _ = x + 1; //~ERROR [E0381]
abe05a73 17 }
5bcae85e 18}
a7813a04
XL
19
20fn main() {
abe05a73 21 ok();
ff7c6d11 22 also_ok();
abe05a73 23 fail();
54a0048b 24}