2022-04-27 21:37:54 +08:00
|
|
|
var testing: i64 = 10;
|
|
|
|
pub fn main() void {
|
|
|
|
var testing: i64 = 20;
|
|
|
|
}
|
|
|
|
|
|
|
|
// error
|
|
|
|
//
|
2022-10-06 22:05:34 +08:00
|
|
|
// :3:9: error: local variable shadows declaration of 'testing'
|
2022-04-27 21:37:54 +08:00
|
|
|
// :1:1: note: declared here
|