summaryrefslogtreecommitdiffstats
path: root/src/test/ui/const-generics/const-parameter-uppercase-lint.rs
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/test/ui/const-generics/const-parameter-uppercase-lint.rs7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/test/ui/const-generics/const-parameter-uppercase-lint.rs b/src/test/ui/const-generics/const-parameter-uppercase-lint.rs
new file mode 100644
index 000000000..b08d62ccc
--- /dev/null
+++ b/src/test/ui/const-generics/const-parameter-uppercase-lint.rs
@@ -0,0 +1,7 @@
+#![deny(non_upper_case_globals)]
+
+fn noop<const x: u32>() {
+ //~^ ERROR const parameter `x` should have an upper case name
+}
+
+fn main() {}