about summary refs log tree commit diff
path: root/tests/ui/lint/lint-non-camel-case-with-trailing-underscores.rs
diff options
context:
space:
mode:
Diffstat (limited to 'tests/ui/lint/lint-non-camel-case-with-trailing-underscores.rs')
-rw-r--r--tests/ui/lint/lint-non-camel-case-with-trailing-underscores.rs11
1 files changed, 11 insertions, 0 deletions
diff --git a/tests/ui/lint/lint-non-camel-case-with-trailing-underscores.rs b/tests/ui/lint/lint-non-camel-case-with-trailing-underscores.rs
new file mode 100644
index 00000000000..b832e4bcd62
--- /dev/null
+++ b/tests/ui/lint/lint-non-camel-case-with-trailing-underscores.rs
@@ -0,0 +1,11 @@
+// check-pass
+
+#![allow(dead_code)]
+// This is ok because we often use the trailing underscore to mean 'prime'
+
+// pretty-expanded FIXME #23616
+
+#[forbid(non_camel_case_types)]
+type Foo_ = isize;
+
+pub fn main() { }