2019-05-21 17:09:58 -05:00
|
|
|
// aux-build:test-macros.rs
|
2018-07-22 10:48:29 -05:00
|
|
|
|
2019-05-21 17:09:58 -05:00
|
|
|
#[macro_use]
|
|
|
|
extern crate test_macros;
|
2018-07-22 10:48:29 -05:00
|
|
|
|
2019-05-21 17:09:58 -05:00
|
|
|
#[recollect_attr]
|
2018-07-22 10:48:29 -05:00
|
|
|
fn another() {
|
|
|
|
fn bar() {
|
|
|
|
let x: u32 = "x"; //~ ERROR: mismatched types
|
|
|
|
}
|
|
|
|
|
|
|
|
bar();
|
|
|
|
}
|
|
|
|
|
|
|
|
fn main() {
|
2019-05-21 17:09:58 -05:00
|
|
|
#[recollect_attr]
|
2018-07-22 10:48:29 -05:00
|
|
|
fn bar() {
|
|
|
|
let x: u32 = "x"; //~ ERROR: mismatched types
|
|
|
|
}
|
|
|
|
|
|
|
|
bar();
|
|
|
|
another();
|
|
|
|
}
|