summaryrefslogtreecommitdiffstats
path: root/src/test/ui/syntax-extension-minor.rs
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/test/ui/syntax-extension-minor.rs14
1 files changed, 14 insertions, 0 deletions
diff --git a/src/test/ui/syntax-extension-minor.rs b/src/test/ui/syntax-extension-minor.rs
new file mode 100644
index 000000000..2d6710af3
--- /dev/null
+++ b/src/test/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");
+}