about summary refs log tree commit diff
path: root/tests/ui/macros/unknown-builtin.rs
blob: aa6e04d3fb859affefc6aa1d7ef5b7daa3499a98 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
#![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!();
}