summaryrefslogtreecommitdiffstats
path: root/src/test/ui/proc-macro/not-joint.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/test/ui/proc-macro/not-joint.rs')
-rw-r--r--src/test/ui/proc-macro/not-joint.rs24
1 files changed, 24 insertions, 0 deletions
diff --git a/src/test/ui/proc-macro/not-joint.rs b/src/test/ui/proc-macro/not-joint.rs
new file mode 100644
index 000000000..30da2811e
--- /dev/null
+++ b/src/test/ui/proc-macro/not-joint.rs
@@ -0,0 +1,24 @@
+// run-pass
+// aux-build:not-joint.rs
+
+extern crate not_joint as bar;
+use bar::{tokens, nothing};
+
+tokens![< -];
+
+#[nothing]
+a![< -];
+
+#[nothing]
+b!{< -}
+
+#[nothing]
+c!(< -);
+
+#[nothing]
+fn foo() {
+ //! dox
+ let x = 2 < - 3;
+}
+
+fn main() {}