summaryrefslogtreecommitdiffstats
path: root/src/tools/clippy/tests/ui/crashes/ice-8250.rs
blob: c1b2e48ba3c062198bf614b4068a86b80de77907 (plain)
1
2
3
4
5
6
7
8
fn _f(s: &str) -> Option<()> {
    let _ = s[1..].splitn(2, '.').next()?;
    //~^ ERROR: unnecessary use of `splitn`
    //~| NOTE: `-D clippy::needless-splitn` implied by `-D warnings`
    Some(())
}

fn main() {}