1 #[warn(clippy::string_add)]
2 #[allow(clippy::string_add_assign)]
4 // ignores assignment distinction
5 let mut x = "".to_owned();
11 let y = "".to_owned();
17 #[warn(clippy::string_add_assign)]
18 fn add_assign_only() {
19 let mut x = "".to_owned();
25 let y = "".to_owned();
31 #[warn(clippy::string_add, clippy::string_add_assign)]
33 let mut x = "".to_owned();
39 let y = "".to_owned();
45 #[allow(clippy::assign_op_pattern)]
51 // the add is only caught for `String`