about summary refs log tree commit diff
path: root/src/tools/clippy/tests/ui/crashes/ice-5944.rs
blob: 2a93c5436511c0bad8c0ed39fbb6a3bd516851bd (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
//@ check-pass

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