summaryrefslogtreecommitdiffstats
path: root/src/test/ui/attributes/register-attr-tool-prelude.rs
blob: d217a8146d2ac934515b8c888f85e159beb7f4d7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
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() {}