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

14 lines
163 B
Rust
Raw Normal View History

2020-08-23 05:05:34 -05:00
#![warn(clippy::repeat_once)]
trait Repeat {
fn repeat(&self) {}
}
impl Repeat for usize {
fn repeat(&self) {}
}
fn main() {
let _ = 42.repeat();
}