]> git.lizzy.rs Git - rust.git/blob - tests/ui/proc-macro/span-from-proc-macro.rs
Rollup merge of #106591 - Ezrashaw:attempted-integer-identifer, r=Estebank
[rust.git] / tests / ui / proc-macro / span-from-proc-macro.rs
1 // aux-build:custom-quote.rs
2 // aux-build:span-from-proc-macro.rs
3 // compile-flags: -Z macro-backtrace
4
5 #[macro_use]
6 extern crate span_from_proc_macro;
7
8 #[error_from_attribute] //~ ERROR cannot find type `MissingType`
9 struct ShouldBeRemoved;
10
11 #[derive(ErrorFromDerive)] //~ ERROR cannot find type `OtherMissingType`
12 struct Kept;
13
14 fn main() {
15     error_from_bang!(); //~ ERROR mismatched types
16     other_error_from_bang!(); //~ ERROR cannot find value `my_ident`
17 }