2020-08-30 23:04:01 -05:00
|
|
|
// error-pattern: attempted to define built-in macro more than once
|
2019-06-20 03:52:31 -05:00
|
|
|
|
|
|
|
#![feature(rustc_attrs)]
|
|
|
|
|
|
|
|
#[rustc_builtin_macro]
|
|
|
|
macro_rules! unknown { () => () } //~ ERROR cannot find a built-in macro with name `unknown`
|
|
|
|
|
|
|
|
#[rustc_builtin_macro]
|
2020-08-30 23:04:01 -05:00
|
|
|
macro_rules! line { () => () } //~ NOTE previously defined here
|
2019-06-20 03:52:31 -05:00
|
|
|
|
|
|
|
fn main() {
|
|
|
|
line!();
|
|
|
|
std::prelude::v1::line!();
|
|
|
|
}
|