mirror of
https://github.com/rust-lang/rust-clippy
synced 2024-11-27 07:00:55 +00:00
13 lines
163 B
Rust
13 lines
163 B
Rust
#![warn(clippy::repeat_once)]
|
|
|
|
trait Repeat {
|
|
fn repeat(&self) {}
|
|
}
|
|
|
|
impl Repeat for usize {
|
|
fn repeat(&self) {}
|
|
}
|
|
|
|
fn main() {
|
|
let _ = 42.repeat();
|
|
}
|