2 #![warn(clippy::repeat_once)]
3 #[allow(unused, clippy::redundant_clone)]
7 let string = "String".to_string();
10 let a = [1; 5].repeat(1);
11 let b = slice.repeat(1);
12 let c = "hello".repeat(N);
13 let d = "hi".repeat(1);
15 let f = string.repeat(1);