summary refs log tree commit diff
path: root/src/test/ui/proc-macro/nested-item-spans.rs
blob: e365b74b3be8ff0dd826aa403388bba60eac2f43 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
// aux-build:nested-item-spans.rs

extern crate nested_item_spans;

use nested_item_spans::foo;

#[foo]
fn another() {
    fn bar() {
        let x: u32 = "x"; //~ ERROR: mismatched types
    }

    bar();
}

fn main() {
    #[foo]
    fn bar() {
        let x: u32 = "x"; //~ ERROR: mismatched types
    }

    bar();
    another();
}