summaryrefslogtreecommitdiffstats
path: root/tests/ui-fulldeps/lint-group-forbid-always-trumps-cli.rs
diff options
context:
space:
mode:
Diffstat (limited to 'tests/ui-fulldeps/lint-group-forbid-always-trumps-cli.rs')
-rw-r--r--tests/ui-fulldeps/lint-group-forbid-always-trumps-cli.rs7
1 files changed, 7 insertions, 0 deletions
diff --git a/tests/ui-fulldeps/lint-group-forbid-always-trumps-cli.rs b/tests/ui-fulldeps/lint-group-forbid-always-trumps-cli.rs
new file mode 100644
index 000000000..fc19bc039
--- /dev/null
+++ b/tests/ui-fulldeps/lint-group-forbid-always-trumps-cli.rs
@@ -0,0 +1,7 @@
+// aux-build:lint-group-plugin-test.rs
+// compile-flags: -F unused -A unused
+
+fn main() {
+ let x = 1;
+ //~^ ERROR unused variable: `x`
+}