rust/src/test/ui/proc-macro/nested-item-spans.rs
2019-05-22 02:20:34 +03:00

23 lines
330 B
Rust

// aux-build:test-macros.rs
#[macro_use]
extern crate test_macros;
#[recollect_attr]
fn another() {
fn bar() {
let x: u32 = "x"; //~ ERROR: mismatched types
}
bar();
}
fn main() {
#[recollect_attr]
fn bar() {
let x: u32 = "x"; //~ ERROR: mismatched types
}
bar();
another();
}