]> git.lizzy.rs Git - rust.git/blob - src/test/ui/drop/drop-on-ret.rs
Auto merge of #102684 - JhonnyBillM:delete-target-data-layout-errors-wrapper, r=davidtwco
[rust.git] / src / test / ui / drop / drop-on-ret.rs
1 // run-pass
2
3
4
5 // pretty-expanded FIXME #23616
6
7 fn f() -> isize {
8     if true {
9         let _s: String = "should not leak".to_string();
10         return 1;
11     }
12     return 0;
13 }
14
15 pub fn main() { f(); }