let_shadowing unit test
This commit is contained in:
parent
ef6b222db2
commit
6cb4223942
13
src/main.rs
13
src/main.rs
|
@ -89,4 +89,17 @@ mod tests {
|
|||
c
|
||||
"#
|
||||
);
|
||||
|
||||
branch_test!(
|
||||
let_shadowing,
|
||||
5,
|
||||
r#"
|
||||
let a = 1;
|
||||
let a = 1 + a;
|
||||
let a = 1 + a;
|
||||
let a = 1 + a;
|
||||
let a = 1 + a;
|
||||
a
|
||||
"#
|
||||
);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue