]> git.lizzy.rs Git - rust.git/blob - src/tools/clippy/tests/ui/crashes/ice-5944.rs
Rollup merge of #78769 - est31:remove_lifetimes, r=KodrAus
[rust.git] / src / tools / clippy / tests / ui / crashes / ice-5944.rs
1 #![warn(clippy::repeat_once)]
2
3 trait Repeat {
4     fn repeat(&self) {}
5 }
6
7 impl Repeat for usize {
8     fn repeat(&self) {}
9 }
10
11 fn main() {
12     let _ = 42.repeat();
13 }