]> git.lizzy.rs Git - rust.git/blob - src/test/ui/proc-macro/break-token-spans.rs
Rollup merge of #86478 - ehuss:future-incompat-test, r=oli-obk
[rust.git] / src / test / ui / proc-macro / break-token-spans.rs
1 // aux-build:test-macros.rs
2 // Regression test for issues #68489 and #70987
3 // Tests that we properly break tokens in `probably_equal_for_proc_macro`
4 // See #72306
5 //
6 // Note that the weird spacing in this example is critical
7 // for testing the issue.
8
9 extern crate test_macros;
10
11 #[test_macros::recollect_attr]
12 fn repro() {
13     f :: < Vec < _ > > ( ) ; //~ ERROR cannot find
14     let a: Option<Option<u8>>= true; //~ ERROR mismatched
15 }
16 fn main() {}