1 // aux-build:three-equals.rs
4 #![feature(proc_macro_hygiene)]
6 extern crate three_equals;
8 use three_equals::three_equals;
14 // Need exactly three equals.
15 three_equals!(==); //~ ERROR found 2 equal signs, need exactly 3
17 // Need exactly three equals.
18 three_equals!(=====); //~ ERROR expected EOF
20 // Only equals accepted.
21 three_equals!(abc); //~ ERROR expected `=`
23 // Only equals accepted.
24 three_equals!(!!); //~ ERROR expected `=`
26 // Only three characters expected.
27 three_equals!(===a); //~ ERROR expected EOF