rust/src/test/ui/issues/issue-46438.rs
Vadim Petrochenkov fff01ccfa8 Do not abort compilation if expansion produces errors
Fix a number of uncovered deficiencies in diagnostics
2018-12-27 15:51:36 +03:00

14 lines
174 B
Rust

macro_rules! m {
($my_type: ty) => {
impl $my_type for u8 {}
}
}
trait Tr {}
m!(Tr);
m!(&'static u8); //~ ERROR expected a trait, found type
fn main() {}