mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-01 06:51:58 +00:00
15 lines
182 B
Rust
15 lines
182 B
Rust
fn foo() -> isize {
|
|
let x: isize;
|
|
|
|
loop {
|
|
break;
|
|
x = 0;
|
|
}
|
|
|
|
println!("{}", x); //~ ERROR E0381
|
|
|
|
return 17;
|
|
}
|
|
|
|
fn main() { println!("{}", foo()); }
|