]> git.lizzy.rs Git - rust.git/blob - src/test/compile-fail-fulldeps/issue-48941.rs
Move parse-fail tests to UI
[rust.git] / src / test / compile-fail-fulldeps / issue-48941.rs
1 // Copyright 2013-2014 The Rust Project Developers. See the COPYRIGHT
2 // file at the top-level directory of this distribution and at
3 // http://rust-lang.org/COPYRIGHT.
4 //
5 // Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
6 // http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
7 // <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
8 // option. This file may not be copied, modified, or distributed
9 // except according to those terms.
10
11 // This is a regression test against an ICE that used to occur
12 // on malformed attributes for a custom MultiModifier.
13
14 // aux-build:macro_crate_test.rs
15 // ignore-stage1
16
17 #![feature(plugin)]
18 #![plugin(macro_crate_test)]
19
20 #[noop_attribute("hi", rank = a)] //~ ERROR expected unsuffixed literal or identifier, found a
21 fn knight() { }
22
23 #[noop_attribute("/user", data= = "<user")] //~ ERROR literal or identifier
24 fn nite() { }
25
26 fn main() {}