Expand column!()

This commit is contained in:
Jeremy Kolb 2019-11-22 08:48:33 -05:00 committed by kjeremy
parent 506131e3e0
commit 1ee5592be2
3 changed files with 63 additions and 1 deletions

View file

@ -4876,3 +4876,22 @@ fn main() {
"###
);
}
#[test]
fn infer_builtin_macros_column() {
assert_snapshot!(
infer(r#"
#[rustc_builtin_macro]
macro_rules! column {() => {}}
fn main() {
let x = column!();
}
"#),
@r###"
![0; 2) '13': i32
[66; 92) '{ ...!(); }': ()
[76; 77) 'x': i32
"###
);
}