mirror of
https://github.com/github/codeql.git
synced 2025-12-17 01:03:14 +01:00
Rust: Add self-assignment variable test
This commit is contained in:
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
@@ -26,6 +26,8 @@ fn mutable_variable() {
|
||||
print_i64(x2); // $ read_access=x2
|
||||
x2 = 5; // $ write_access=x2
|
||||
print_i64(x2); // $ read_access=x2
|
||||
x2 = x2; // $ read_access=x2 $ write_access=x2
|
||||
print_i64(x2); // $ read_access=x2
|
||||
}
|
||||
|
||||
fn mutable_variable_immutable_borrow() {
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user