summaryrefslogtreecommitdiffstats
path: root/src/tools/clippy/tests/ui/crashes/ice-8250.stderr
blob: 397e978af0bd6ddaebccc55fa3a7ba00835e17e5 (plain)
1
2
3
4
5
6
7
8
9
10
11
error: unnecessary use of `splitn`
  --> $DIR/ice-8250.rs:2:13
   |
LL |     let _ = s[1..].splitn(2, '.').next()?;
   |             ^^^^^^^^^^^^^^^^^^^^^ help: try: `s[1..].split('.')`
   |
   = note: `-D clippy::needless-splitn` implied by `-D warnings`
   = help: to override `-D warnings` add `#[allow(clippy::needless_splitn)]`

error: aborting due to 1 previous error