2016-06-10 20:00:07 -05:00
|
|
|
macro_rules! bah {
|
2020-02-22 01:16:39 -06:00
|
|
|
($a:expr) => {
|
|
|
|
$a
|
|
|
|
}; //~^ ERROR macro expansion ignores token `2` and any following
|
2016-06-10 20:00:07 -05:00
|
|
|
}
|
|
|
|
|
2020-02-22 01:16:39 -06:00
|
|
|
trait Bar {
|
2016-06-10 20:00:07 -05:00
|
|
|
bah!(2);
|
|
|
|
}
|
|
|
|
|
2020-02-22 01:16:39 -06:00
|
|
|
fn main() {
|
|
|
|
let _recovery_witness: () = 0; //~ ERROR mismatched types
|
|
|
|
}
|