mirror of
https://github.com/rust-lang/rust.git
synced 2024-12-25 06:56:50 +00:00
Add known-tool-in-submodule test
The test currently fails. The next commit fixes it.
This commit is contained in:
parent
bf642323d6
commit
551220c48d
10
src/test/ui/lint/known-tool-in-submodule/root.rs
Normal file
10
src/test/ui/lint/known-tool-in-submodule/root.rs
Normal file
@ -0,0 +1,10 @@
|
||||
// check-pass
|
||||
|
||||
#![feature(register_tool)]
|
||||
#![register_tool(tool)]
|
||||
|
||||
mod submodule;
|
||||
|
||||
fn main() {
|
||||
submodule::foo();
|
||||
}
|
4
src/test/ui/lint/known-tool-in-submodule/submodule.rs
Normal file
4
src/test/ui/lint/known-tool-in-submodule/submodule.rs
Normal file
@ -0,0 +1,4 @@
|
||||
// ignore-test: not a test
|
||||
|
||||
#[allow(tool::lint)]
|
||||
pub fn foo() {}
|
Loading…
Reference in New Issue
Block a user