Update Examples
parent
a23e1fa400
commit
3346034900
@ -547,7 +547,7 @@ fn main() {
|
|||||||
println!("inner short: {}", short_lived_binding);
|
println!("inner short: {}", short_lived_binding);
|
||||||
}
|
}
|
||||||
|
|
||||||
// Error! `short_lived_binding` doesn't exist in this scope
|
// Error! `short_lived_binding` doesn't exist here
|
||||||
println!("outer short: {}", short_lived_binding);
|
println!("outer short: {}", short_lived_binding);
|
||||||
// FIXME ^ Comment out this line
|
// FIXME ^ Comment out this line
|
||||||
|
|
||||||
@ -564,7 +564,7 @@ fn main
|
|||||||
let short_lived_binding = 2
|
let short_lived_binding = 2
|
||||||
println! "inner short: {}", short_lived_binding
|
println! "inner short: {}", short_lived_binding
|
||||||
|
|
||||||
// Error! `short_lived_binding` doesn't exist in this scope
|
// Error! `short_lived_binding` doesn't exist here
|
||||||
println! "outer short: {}", short_lived_binding
|
println! "outer short: {}", short_lived_binding
|
||||||
// FIXME ^ Comment out this line
|
// FIXME ^ Comment out this line
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user