2020-08-28 09:10:16 -05:00
|
|
|
#![warn(clippy::repeat_once)]
|
2022-05-05 09:12:52 -05:00
|
|
|
#![allow(clippy::let_unit_value)]
|
2020-08-28 09:10:16 -05:00
|
|
|
|
|
|
|
trait Repeat {
|
|
|
|
fn repeat(&self) {}
|
|
|
|
}
|
|
|
|
|
|
|
|
impl Repeat for usize {
|
|
|
|
fn repeat(&self) {}
|
|
|
|
}
|
|
|
|
|
|
|
|
fn main() {
|
|
|
|
let _ = 42.repeat();
|
|
|
|
}
|