mirror of
https://github.com/rust-lang/rust.git
synced 2024-12-16 18:44:56 +00:00
15 lines
197 B
Rust
15 lines
197 B
Rust
#![warn(clippy::repeat_once)]
|
|
#![allow(clippy::let_unit_value)]
|
|
|
|
trait Repeat {
|
|
fn repeat(&self) {}
|
|
}
|
|
|
|
impl Repeat for usize {
|
|
fn repeat(&self) {}
|
|
}
|
|
|
|
fn main() {
|
|
let _ = 42.repeat();
|
|
}
|