diff options
Diffstat (limited to 'src/tools/clippy/tests/ui/seek_from_current.stderr')
-rw-r--r-- | src/tools/clippy/tests/ui/seek_from_current.stderr | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/tools/clippy/tests/ui/seek_from_current.stderr b/src/tools/clippy/tests/ui/seek_from_current.stderr new file mode 100644 index 000000000..c079f3611 --- /dev/null +++ b/src/tools/clippy/tests/ui/seek_from_current.stderr @@ -0,0 +1,10 @@ +error: using `SeekFrom::Current` to start from current position + --> $DIR/seek_from_current.rs:20:5 + | +LL | f.seek(SeekFrom::Current(0))?; + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: replace with: `f.stream_position()` + | + = note: `-D clippy::seek-from-current` implied by `-D warnings` + +error: aborting due to previous error + |