blob: 2a93c5436511c0bad8c0ed39fbb6a3bd516851bd [file]
//@ check-pass
#![warn(clippy::repeat_once)]
#![allow(clippy::let_unit_value)]
trait Repeat {
fn repeat(&self) {}
}
impl Repeat for usize {
fn repeat(&self) {}
}
fn main() {
let _ = 42.repeat();
}