We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6007797 commit 92c2ff6Copy full SHA for 92c2ff6
src/libsyntax/ext/expand.rs
@@ -1403,6 +1403,19 @@ mod test {
1403
0)
1404
}
1405
1406
+ // ooh, got another bite?
1407
+ // expands to struct A; impl A {fn thingy(&self_1) {self_1;}}
1408
+ #[test] fn method_arg_hygiene_2(){
1409
+ run_renaming_test(
1410
+ &("struct A;
1411
+ macro_rules! add_method (($T:ty) =>
1412
+ (impl $T { fn thingy(&self) {self;} }))
1413
+ add_method!(A)",
1414
+ vec!(vec!(0)),
1415
+ true),
1416
+ 0)
1417
+ }
1418
+
1419
// item fn hygiene
1420
// expands to fn q(x_1:int){fn g(x_2:int){x_2 + x_1};}
1421
#[test] fn issue_9383(){
0 commit comments