mirror of
https://github.com/rust-lang/rust.git
synced 2025-05-01 12:37:37 +00:00

Done with ```bash sd '//@ pretty-expanded.*\n' '' tests/ui/**/*.rs ``` and ``` sd '//@pretty-expanded.*\n' '' tests/ui/**/*.rs ```
15 lines
169 B
Rust
15 lines
169 B
Rust
//@ run-pass
|
|
|
|
|
|
|
|
|
|
fn f() -> isize {
|
|
if true {
|
|
let _s: String = "should not leak".to_string();
|
|
return 1;
|
|
}
|
|
return 0;
|
|
}
|
|
|
|
pub fn main() { f(); }
|