Add known-tool-in-submodule test

The test currently fails. The next commit fixes it.
This commit is contained in:
Samuel E. Moelius III 2021-09-23 22:05:26 -04:00
parent bf642323d6
commit 551220c48d
2 changed files with 14 additions and 0 deletions

View File

@ -0,0 +1,10 @@
// check-pass
#![feature(register_tool)]
#![register_tool(tool)]
mod submodule;
fn main() {
submodule::foo();
}

View File

@ -0,0 +1,4 @@
// ignore-test: not a test
#[allow(tool::lint)]
pub fn foo() {}