mirror of
https://github.com/rust-lang/rust.git
synced 2024-12-15 10:07:30 +00:00
14 lines
163 B
Rust
14 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();
|
|
}
|