summaryrefslogtreecommitdiffstats
path: root/tools/lint/test/files/clippy/test2/src/bad_1.rs
blob: 2fe06302020e41adb11bcfd1a58d83fbf7d7f5e5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
mod bad_2;

fn main() {
    // Statements here are executed when the compiled binary is called

    // Print text to the console
    println!("Hello World!");
    // Clippy detects this as a swap and considers this as an error
    let mut a=1;
    let mut b=1;

    a = b;
    b = a;

}