summaryrefslogtreecommitdiffstats
path: root/src/test/ui/macros/unknown-builtin.rs
blob: 16f9139e6479e2cdd87ca27e03e37aa01ff81157 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
// error-pattern: attempted to define built-in macro more than once

#![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 { () => () } //~ NOTE previously defined here

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