summary refs log tree commit diff
path: root/src/test/ui/macros/unknown-builtin.rs
blob: a96b99ae4ff785d778a5115d785b23f12860d997 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
// error-pattern: cannot find a built-in macro with name `line`

#![feature(rustc_attrs)]

#[rustc_builtin_macro]
macro_rules! unknown { () => () } //~ ERROR cannot find a built-in macro with name `unknown`

#[rustc_builtin_macro]
macro_rules! line { () => () }

fn main() {
    line!();
    std::prelude::v1::line!();
}