]> git.lizzy.rs Git - rust.git/blob - src/test/ui/attributes/register-attr-tool-fail.rs
Rollup merge of #100030 - WaffleLapkin:nice_pointer_sis, r=scottmcm
[rust.git] / src / test / ui / attributes / register-attr-tool-fail.rs
1 #![feature(register_attr)]
2 #![feature(register_tool)]
3
4 #![register_attr] //~ ERROR malformed `register_attr` attribute input
5 #![register_tool] //~ ERROR malformed `register_tool` attribute input
6
7 #![register_attr(a::b)] //~ ERROR `register_attr` only accepts identifiers
8 #![register_tool(a::b)] //~ ERROR `register_tool` only accepts identifiers
9
10 #![register_attr(attr, attr)] //~ ERROR attribute `attr` was already registered
11 #![register_tool(tool, tool)] //~ ERROR tool `tool` was already registered
12
13 fn main() {}