summaryrefslogtreecommitdiffstats
path: root/src/test/ui/proc-macro/break-token-spans.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/test/ui/proc-macro/break-token-spans.rs')
-rw-r--r--src/test/ui/proc-macro/break-token-spans.rs16
1 files changed, 16 insertions, 0 deletions
diff --git a/src/test/ui/proc-macro/break-token-spans.rs b/src/test/ui/proc-macro/break-token-spans.rs
new file mode 100644
index 000000000..59dc3b504
--- /dev/null
+++ b/src/test/ui/proc-macro/break-token-spans.rs
@@ -0,0 +1,16 @@
+// aux-build:test-macros.rs
+// Regression test for issues #68489 and #70987
+// Tests that we properly break tokens in `probably_equal_for_proc_macro`
+// See #72306
+//
+// Note that the weird spacing in this example is critical
+// for testing the issue.
+
+extern crate test_macros;
+
+#[test_macros::recollect_attr]
+fn repro() {
+ f :: < Vec < _ > > ( ) ; //~ ERROR cannot find
+ let a: Option<Option<u8>>= true; //~ ERROR mismatched
+}
+fn main() {}