2 // compile-flags: --cfg foo
4 #![feature(register_attr)]
5 #![feature(register_tool)]
7 #![register_attr(attr)]
8 #![register_tool(tool)]
9 #![register_tool(rustfmt, clippy)] // OK
10 #![cfg_attr(foo, register_attr(conditional_attr))]
11 #![cfg_attr(foo, register_tool(conditional_tool))]
18 #[conditional_tool::attr]