2020-08-23 10:05:34 +00:00
|
|
|
#![warn(clippy::repeat_once)]
|
2022-03-17 23:53:28 +00:00
|
|
|
#![allow(clippy::let_unit_value)]
|
2020-08-23 10:05:34 +00:00
|
|
|
|
|
|
|
trait Repeat {
|
|
|
|
fn repeat(&self) {}
|
|
|
|
}
|
|
|
|
|
|
|
|
impl Repeat for usize {
|
|
|
|
fn repeat(&self) {}
|
|
|
|
}
|
|
|
|
|
|
|
|
fn main() {
|
|
|
|
let _ = 42.repeat();
|
|
|
|
}
|