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

15 lines
197 B
Rust
Raw Normal View History

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