]> git.lizzy.rs Git - rust.git/blob - tests/ui/proc-macro/nested-item-spans.rs
Auto merge of #106959 - tmiasko:opt-funclets, r=davidtwco
[rust.git] / tests / ui / proc-macro / nested-item-spans.rs
1 // aux-build:test-macros.rs
2
3 #[macro_use]
4 extern crate test_macros;
5
6 #[recollect_attr]
7 fn another() {
8     fn bar() {
9         let x: u32 = "x"; //~ ERROR: mismatched types
10     }
11
12     bar();
13 }
14
15 fn main() {
16     #[recollect_attr]
17     fn bar() {
18         let x: u32 = "x"; //~ ERROR: mismatched types
19     }
20
21     bar();
22     another();
23 }