Scope Error
Intentional error. Look at the message on the next page.
SOURCE CODE
fn main() {
let alfa = 1;
{
let bravo = 2;
println!("bravo {}", bravo);
}
println!("alfa {} - bravo {}", alfa, bravo);
}
Intentional error. Look at the message on the next page.
fn main() {
let alfa = 1;
{
let bravo = 2;
println!("bravo {}", bravo);
}
println!("alfa {} - bravo {}", alfa, bravo);
}