summaryrefslogtreecommitdiffstats
path: root/src/tools/clippy/tests/ui/crashes/ice-5944.rs
blob: ce46bc1acc1b7fbd718f5ffe8de0f19c38e0fe1e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#![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();
}