summaryrefslogtreecommitdiffstats
path: root/src/tools/clippy/tests/ui/allow_attributes.stderr
diff options
context:
space:
mode:
Diffstat (limited to 'src/tools/clippy/tests/ui/allow_attributes.stderr')
-rw-r--r--src/tools/clippy/tests/ui/allow_attributes.stderr16
1 files changed, 16 insertions, 0 deletions
diff --git a/src/tools/clippy/tests/ui/allow_attributes.stderr b/src/tools/clippy/tests/ui/allow_attributes.stderr
new file mode 100644
index 000000000..681837e9e
--- /dev/null
+++ b/src/tools/clippy/tests/ui/allow_attributes.stderr
@@ -0,0 +1,16 @@
+error: #[allow] attribute found
+ --> $DIR/allow_attributes.rs:11:3
+ |
+LL | #[allow(dead_code)]
+ | ^^^^^ help: replace it with: `expect`
+ |
+ = note: `-D clippy::allow-attributes` implied by `-D warnings`
+
+error: #[allow] attribute found
+ --> $DIR/allow_attributes.rs:20:30
+ |
+LL | #[cfg_attr(panic = "unwind", allow(dead_code))]
+ | ^^^^^ help: replace it with: `expect`
+
+error: aborting due to 2 previous errors
+