mirror of
https://github.com/rust-lang/rust-clippy
synced 2024-11-27 23:20:39 +00:00
16 lines
301 B
Rust
16 lines
301 B
Rust
|
// run-rustfix
|
||
|
#![warn(clippy::single_char_push_str)]
|
||
|
|
||
|
fn main() {
|
||
|
let mut string = String::new();
|
||
|
string.push('R');
|
||
|
string.push('\'');
|
||
|
|
||
|
string.push('u');
|
||
|
string.push_str("st");
|
||
|
string.push_str("");
|
||
|
string.push('\x52');
|
||
|
string.push('\u{0052}');
|
||
|
string.push('a');
|
||
|
}
|