]> git.lizzy.rs Git - rust.git/blob - tests/ui/macros/unknown-builtin.rs
Rollup merge of #106962 - compiler-errors:use-sugg-span, r=oli-obk
[rust.git] / tests / ui / macros / unknown-builtin.rs
1 // error-pattern: attempted to define built-in macro more than once
2
3 #![feature(rustc_attrs)]
4
5 #[rustc_builtin_macro]
6 macro_rules! unknown { () => () } //~ ERROR cannot find a built-in macro with name `unknown`
7
8 #[rustc_builtin_macro]
9 macro_rules! line { () => () } //~ NOTE previously defined here
10
11 fn main() {
12     line!();
13     std::prelude::v1::line!();
14 }