From 4e00cf613428d24d305a89e4f8e79b70ea8e8322 Mon Sep 17 00:00:00 2001 From: Daniel Fagnan Date: Mon, 24 Feb 2014 19:42:40 -0700 Subject: Added new attribute syntax with backward compatibility. Signed-off-by: Daniel Fagnan --- src/test/compile-fail/attr.rs | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 src/test/compile-fail/attr.rs (limited to 'src/test/compile-fail') diff --git a/src/test/compile-fail/attr.rs b/src/test/compile-fail/attr.rs new file mode 100644 index 00000000000..4107c84c472 --- /dev/null +++ b/src/test/compile-fail/attr.rs @@ -0,0 +1,14 @@ +// 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. + +fn main() {} + +#![lang(foo)] //~ ERROR An inner attribute was not permitted in this context. +fn foo() {} \ No newline at end of file -- cgit 1.4.1-3-g733a5