13 lines
155 B
Rust
13 lines
155 B
Rust
#![feature(plugin)]
|
|
#![plugin(clippy)]
|
|
|
|
#![deny(string_add_assign)]
|
|
|
|
fn main() {
|
|
let x = "".to_owned();
|
|
|
|
for i in (1..3) {
|
|
x = x + "."; //~ERROR
|
|
}
|
|
}
|