diff options
Diffstat (limited to 'tests/ui/proc-macro/not-joint.rs')
-rw-r--r-- | tests/ui/proc-macro/not-joint.rs | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/tests/ui/proc-macro/not-joint.rs b/tests/ui/proc-macro/not-joint.rs new file mode 100644 index 000000000..30da2811e --- /dev/null +++ b/tests/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() {} |