2
0
Fork 0
mirror of https://github.com/rust-lang/rust-clippy synced 2024-12-18 09:03:18 +00:00
rust-clippy/tests/ui/crashes/ice-5944.rs

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