mirror of
https://github.com/rust-lang/rust.git
synced 2024-12-22 13:34:47 +00:00
e318328d63
* 4-space indentation * no trailing whitespace * no tabs
13 lines
169 B
Rust
Executable File
13 lines
169 B
Rust
Executable File
#![feature(plugin)]
|
|
#![plugin(clippy)]
|
|
|
|
#![deny(string_add_assign)]
|
|
|
|
fn main() {
|
|
let x = "".to_owned();
|
|
|
|
for i in (1..3) {
|
|
x = x + "."; //~ERROR
|
|
}
|
|
}
|