mirror of
https://github.com/rust-lang/rust.git
synced 2025-04-27 18:56:24 +00:00
14 lines
324 B
Rust
14 lines
324 B
Rust
#![feature(rustc_attrs)]
|
|
|
|
#[rustc_builtin_macro]
|
|
macro_rules! unknown { () => () } //~ ERROR cannot find a built-in macro with name `unknown`
|
|
|
|
// Defining another `line` builtin macro should not cause an error.
|
|
#[rustc_builtin_macro]
|
|
macro_rules! line { () => () }
|
|
|
|
fn main() {
|
|
line!();
|
|
std::prelude::v1::line!();
|
|
}
|