1 // aux-build:three-equals.rs
3 extern crate three_equals;
5 use three_equals::three_equals;
11 // Need exactly three equals.
12 three_equals!(==); //~ ERROR found 2 equal signs, need exactly 3
14 // Need exactly three equals.
15 three_equals!(=====); //~ ERROR expected EOF
17 // Only equals accepted.
18 three_equals!(abc); //~ ERROR expected `=`
20 // Only equals accepted.
21 three_equals!(!!); //~ ERROR expected `=`
23 // Only three characters expected.
24 three_equals!(===a); //~ ERROR expected EOF