about summary refs log tree commit diff
path: root/tests
diff options
context:
space:
mode:
authorEzra Shaw <ezrasure@outlook.com>2023-04-20 16:20:34 +1200
committerEzra Shaw <ezrasure@outlook.com>2023-04-20 16:28:49 +1200
commit8cad917e689f19f7ea2f9a6d2e5a95c7ee6c77d4 (patch)
treea2b46053c6a0b0fbf82ca93e0725e1e6288a0aec /tests
parentc7815840793b980d0aae7d5a2f5d9bb1fd6c0d1e (diff)
downloadrust-8cad917e689f19f7ea2f9a6d2e5a95c7ee6c77d4.tar.gz
rust-8cad917e689f19f7ea2f9a6d2e5a95c7ee6c77d4.zip
reimpl `make non_upper_case_globals lint not report trait impls`
Diffstat (limited to 'tests')
-rw-r--r--tests/ui/lint/issue-110573.rs12
1 files changed, 12 insertions, 0 deletions
diff --git a/tests/ui/lint/issue-110573.rs b/tests/ui/lint/issue-110573.rs
new file mode 100644
index 00000000000..d9f0868b765
--- /dev/null
+++ b/tests/ui/lint/issue-110573.rs
@@ -0,0 +1,12 @@
+// check-pass
+
+#![deny(warnings)]
+
+pub struct Struct;
+
+impl Struct {
+    #[allow(non_upper_case_globals)]
+    pub const Const: () = ();
+}
+
+fn main() {}