diff options
| author | Daniel Fagnan <dnfagnan@gmail.com> | 2014-02-24 19:42:40 -0700 |
|---|---|---|
| committer | Alex Crichton <alex@alexcrichton.com> | 2014-03-20 18:06:53 -0700 |
| commit | 4e00cf613428d24d305a89e4f8e79b70ea8e8322 (patch) | |
| tree | 183c414832596437bfc0e6a04b81f8542cbd53c0 /src/test/compile-fail | |
| parent | 6eae7df43cd21b76fe91eeaf6ef2af9bd2a8fafc (diff) | |
| download | rust-4e00cf613428d24d305a89e4f8e79b70ea8e8322.tar.gz rust-4e00cf613428d24d305a89e4f8e79b70ea8e8322.zip | |
Added new attribute syntax with backward compatibility.
Signed-off-by: Daniel Fagnan <dnfagnan@gmail.com>
Diffstat (limited to 'src/test/compile-fail')
| -rw-r--r-- | src/test/compile-fail/attr.rs | 14 |
1 files changed, 14 insertions, 0 deletions
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 <LICENSE-APACHE or +// http://www.apache.org/licenses/LICENSE-2.0> or the MIT license +// <LICENSE-MIT or http://opensource.org/licenses/MIT>, 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 |
