From d3bbfb48bd44b578d5ad4a14f82d8066e21a008a Mon Sep 17 00:00:00 2001 From: Alexander Light Date: Mon, 1 Dec 2014 11:08:29 -0500 Subject: [PATCH] added negative test for macro expansion in attributes --- src/test/compile-fail/macro-attribute.rs | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 src/test/compile-fail/macro-attribute.rs diff --git a/src/test/compile-fail/macro-attribute.rs b/src/test/compile-fail/macro-attribute.rs new file mode 100644 index 00000000000..77ea0c9c4f3 --- /dev/null +++ b/src/test/compile-fail/macro-attribute.rs @@ -0,0 +1,13 @@ +// Copyright 2014 The Rust Project Developers. See the COPYRIGHT +// file at the top-level directory of this distribution and at +// http://rust-lang.org/COPYRIGHT. +// +// Licensed under the Apache License, Version 2.0 or the MIT license +// , at your +// option. This file may not be copied, modified, or distributed +// except according to those terms. + +#[doc = $not_there] //~ error: unexpected token: `$` +fn main() { } +