Revert "Add test for macro_rules! invoking a proc-macro with capture groups"

This reverts commit 30c00fd26a.
This commit is contained in:
Aaron Hill 2020-05-29 00:19:08 -04:00
parent ed503acb46
commit 4d4facbe4f
No known key found for this signature in database
GPG key ID: B4087E510E98B164
2 changed files with 0 additions and 30 deletions

View file

@ -1,18 +0,0 @@
// aux-build: test-macros.rs
extern crate test_macros;
use test_macros::recollect_attr;
macro_rules! reemit {
($name:ident => $($token:expr)*) => {
#[recollect_attr]
pub fn $name() {
$($token)*;
}
}
}
reemit! { foo => 45u32.into() } //~ ERROR type annotations
fn main() {}

View file

@ -1,12 +0,0 @@
error[E0282]: type annotations needed
--> $DIR/macro-rules-capture.rs:16:24
|
LL | reemit! { foo => 45u32.into() }
| ------^^^^--
| | |
| | cannot infer type for type parameter `T` declared on the trait `Into`
| this method call resolves to `T`
error: aborting due to previous error
For more information about this error, try `rustc --explain E0282`.