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