blob: dc197e50300d8b11939db42d3ee7738bdb9fa9f7 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
// run-rustfix
#![warn(clippy::repeat_once)]
#[allow(unused, clippy::redundant_clone)]
fn main() {
const N: usize = 1;
let s = "str";
let string = "String".to_string();
let slice = [1; 5];
let a = [1; 5].to_vec();
let b = slice.to_vec();
let c = "hello".to_string();
let d = "hi".to_string();
let e = s.to_string();
let f = string.clone();
}
|