rust/tests/compile-fail/strings.rs
Georg Brandl e318328d63 all: whitespace cleanup
* 4-space indentation
* no trailing whitespace
* no tabs
2015-08-11 20:22:50 +02:00

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