rust-clippy/tests/ui/crashes/ice-5944.rs

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();
}