Files
rust/tests/ui/tool-attributes/predefined-tool.rs
Gary Guo 43444bf3b6 Remove duplicate tool error and add reserved error
Under the RFC, it's not an error to register tool multiple times, but it is
an error to register "rustc" tool.
2026-07-27 19:06:39 +01:00

12 lines
326 B
Rust

#![feature(register_tool)]
// Registering predefined tool is okay.
#![register_tool(clippy)]
#![register_attribute_tool(miri)]
#![register_lint_tool(rustfmt)]
#![register_tool(diagnostic)]
#![register_attribute_tool(rust_analyzer)]
// Registering "rustc" is an error.
#![register_tool(rustc)] //~ ERROR reserved
fn main() {}