blob: fe45e58c947fbbcfc6cc2b8b5da6708696733dab [file] [edit]
// rustfix-only-machine-applicable
#![feature(rustc_attrs, const_trait_impl, const_clone, const_destruct)]
#![warn(clippy::redundant_clone)]
struct S;
const impl Clone for S {
fn clone(&self) -> Self {
Self
}
}
#[rustc_comptime]
fn comptime_func() {
let a = S;
let _a = a;
//~^ redundant_clone
}
fn main() {}