mirror of
https://github.com/rust-lang/rust-clippy
synced 2024-11-15 01:17:16 +00:00
8ffbf6f94d
remove stdout, fix clippy warnings, fmtcar
36 lines
685 B
Rust
36 lines
685 B
Rust
// compile-flags: --edition 2018
|
|
// aux-build:macro_rules.rs
|
|
// aux-build:macro_use_helper.rs
|
|
|
|
#![allow(clippy::single_component_path_imports)]
|
|
#![warn(clippy::macro_use_imports)]
|
|
|
|
#[macro_use]
|
|
extern crate macro_use_helper as mac;
|
|
|
|
#[macro_use]
|
|
extern crate clippy_mini_macro_test as mini_mac;
|
|
|
|
mod a {
|
|
#[macro_use]
|
|
use mac;
|
|
#[macro_use]
|
|
use mini_mac;
|
|
#[macro_use]
|
|
use mac::inner;
|
|
|
|
#[derive(ClippyMiniMacroTest)]
|
|
struct Test;
|
|
|
|
fn main() {
|
|
pub_macro!();
|
|
inner_mod_macro!();
|
|
pub_in_private_macro!(_var);
|
|
function_macro!();
|
|
let v: ty_macro!() = Vec::default();
|
|
|
|
inner::try_err!();
|
|
}
|
|
}
|
|
|
|
fn main() {}
|