summaryrefslogtreecommitdiffstats
path: root/src/test/ui/attributes/register-attr-tool-fail.rs
blob: 84736be844ba688682e734aeed48b52b7f509cb4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
#![feature(register_attr)]
#![feature(register_tool)]

#![register_attr] //~ ERROR malformed `register_attr` attribute input
#![register_tool] //~ ERROR malformed `register_tool` attribute input

#![register_attr(a::b)] //~ ERROR `register_attr` only accepts identifiers
#![register_tool(a::b)] //~ ERROR `register_tool` only accepts identifiers

#![register_attr(attr, attr)] //~ ERROR attribute `attr` was already registered
#![register_tool(tool, tool)] //~ ERROR tool `tool` was already registered

fn main() {}