summaryrefslogtreecommitdiffstats
path: root/src/tools/clippy/tests/ui/ineffective_open_options.stderr
diff options
context:
space:
mode:
Diffstat (limited to 'src/tools/clippy/tests/ui/ineffective_open_options.stderr')
-rw-r--r--src/tools/clippy/tests/ui/ineffective_open_options.stderr17
1 files changed, 17 insertions, 0 deletions
diff --git a/src/tools/clippy/tests/ui/ineffective_open_options.stderr b/src/tools/clippy/tests/ui/ineffective_open_options.stderr
new file mode 100644
index 000000000..7dc532223
--- /dev/null
+++ b/src/tools/clippy/tests/ui/ineffective_open_options.stderr
@@ -0,0 +1,17 @@
+error: unnecessary use of `.write(true)` because there is `.append(true)`
+ --> $DIR/ineffective_open_options.rs:8:9
+ |
+LL | .write(true)
+ | ^^^^^^^^^^^^ help: remove `.write(true)`
+ |
+ = note: `-D clippy::ineffective-open-options` implied by `-D warnings`
+ = help: to override `-D warnings` add `#[allow(clippy::ineffective_open_options)]`
+
+error: unnecessary use of `.write(true)` because there is `.append(true)`
+ --> $DIR/ineffective_open_options.rs:16:9
+ |
+LL | .write(true)
+ | ^^^^^^^^^^^^ help: remove `.write(true)`
+
+error: aborting due to 2 previous errors
+