about summary refs log tree commit diff
path: root/tests/ui/syntax-extension-minor.rs
diff options
context:
space:
mode:
Diffstat (limited to 'tests/ui/syntax-extension-minor.rs')
-rw-r--r--tests/ui/syntax-extension-minor.rs14
1 files changed, 14 insertions, 0 deletions
diff --git a/tests/ui/syntax-extension-minor.rs b/tests/ui/syntax-extension-minor.rs
new file mode 100644
index 00000000000..2d6710af392
--- /dev/null
+++ b/tests/ui/syntax-extension-minor.rs
@@ -0,0 +1,14 @@
+// run-pass
+
+#![feature(concat_idents)]
+
+pub fn main() {
+    struct Foo;
+    let _: concat_idents!(F, oo) = Foo; // Test that `concat_idents!` can be used in type positions
+
+    let asdf_fdsa = "<.<".to_string();
+    // concat_idents should have call-site hygiene.
+    assert!(concat_idents!(asd, f_f, dsa) == "<.<".to_string());
+
+    assert_eq!(stringify!(use_mention_distinction), "use_mention_distinction");
+}