diff options
Diffstat (limited to 'src/test/ui/attributes/register-attr-tool-prelude.rs')
-rw-r--r-- | src/test/ui/attributes/register-attr-tool-prelude.rs | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/src/test/ui/attributes/register-attr-tool-prelude.rs b/src/test/ui/attributes/register-attr-tool-prelude.rs new file mode 100644 index 000000000..d217a8146 --- /dev/null +++ b/src/test/ui/attributes/register-attr-tool-prelude.rs @@ -0,0 +1,14 @@ +#![feature(register_attr)] +#![feature(register_tool)] + +#![register_attr(attr)] +#![register_tool(tool)] + +#[no_implicit_prelude] +mod m { + #[attr] //~ ERROR cannot find attribute `attr` in this scope + #[tool::attr] //~ ERROR failed to resolve: use of undeclared crate or module `tool` + fn check() {} +} + +fn main() {} |