1
0
Fork 0
firefox/tools/lint/test/files/rustfmt/subdir/bad.rs
Daniel Baumann 5e9a113729
Adding upstream version 140.0.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
2025-06-25 09:37:52 +02:00

16 lines
294 B
Rust

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;
}