diff options
Diffstat (limited to 'third_party/rust/phf_macros/tests/compile-fail')
-rw-r--r-- | third_party/rust/phf_macros/tests/compile-fail/bad-syntax.rs | 9 | ||||
-rw-r--r-- | third_party/rust/phf_macros/tests/compile-fail/bad-syntax.stderr | 5 |
2 files changed, 14 insertions, 0 deletions
diff --git a/third_party/rust/phf_macros/tests/compile-fail/bad-syntax.rs b/third_party/rust/phf_macros/tests/compile-fail/bad-syntax.rs new file mode 100644 index 0000000000..a766be4283 --- /dev/null +++ b/third_party/rust/phf_macros/tests/compile-fail/bad-syntax.rs @@ -0,0 +1,9 @@ +use phf::phf_map; + +static MAP: phf::Map<u32, u32> = phf_map! { + Signature:: + => //~ ERROR expected identifier + () +}; + +fn main() {} diff --git a/third_party/rust/phf_macros/tests/compile-fail/bad-syntax.stderr b/third_party/rust/phf_macros/tests/compile-fail/bad-syntax.stderr new file mode 100644 index 0000000000..bd387e6dcc --- /dev/null +++ b/third_party/rust/phf_macros/tests/compile-fail/bad-syntax.stderr @@ -0,0 +1,5 @@ +error: expected identifier + --> $DIR/bad-syntax.rs:5:5 + | +5 | => //~ ERROR expected identifier + | ^^ |