2019-06-20 11:52:31 +03:00
|
|
|
#![feature(rustc_attrs)]
|
|
|
|
|
|
|
|
#[rustc_builtin_macro]
|
|
|
|
macro_rules! unknown { () => () } //~ ERROR cannot find a built-in macro with name `unknown`
|
|
|
|
|
2025-03-17 16:50:55 +01:00
|
|
|
// Defining another `line` builtin macro should not cause an error.
|
2019-06-20 11:52:31 +03:00
|
|
|
#[rustc_builtin_macro]
|
2025-03-17 16:50:55 +01:00
|
|
|
macro_rules! line { () => () }
|
2019-06-20 11:52:31 +03:00
|
|
|
|
|
|
|
fn main() {
|
|
|
|
line!();
|
|
|
|
std::prelude::v1::line!();
|
|
|
|
}
|