rust-clippy/tests/ui/crashes/inherent_impl.rs
2019-09-27 20:47:00 -05:00

26 lines
415 B
Rust

#![deny(clippy::multiple_inherent_impl)]
/// Test for https://github.com/rust-lang/rust-clippy/issues/4578
macro_rules! impl_foo {
($struct:ident) => {
impl $struct {
fn foo() {}
}
};
}
macro_rules! impl_bar {
($struct:ident) => {
impl $struct {
fn bar() {}
}
};
}
struct MyStruct;
impl_foo!(MyStruct);
impl_bar!(MyStruct);
fn main() {}