2020-07-14 07:59:59 -05:00
|
|
|
// run-rustfix
|
|
|
|
#![warn(clippy::repeat_once)]
|
2021-09-28 12:03:12 -05:00
|
|
|
#[allow(unused, clippy::redundant_clone)]
|
2020-07-14 07:59:59 -05:00
|
|
|
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();
|
|
|
|
}
|