mirror of
https://github.com/rust-lang/rust.git
synced 2026-05-23 22:05:31 +03:00
macro method unit test case fix
This commit is contained in:
@@ -1531,9 +1531,9 @@ macro_rules! add_method (($T:ty) =>
|
||||
}
|
||||
|
||||
// macro_rules in method position. Sadly, unimplemented.
|
||||
#[ignore] #[test] fn macro_in_method_posn(){
|
||||
#[test] fn macro_in_method_posn(){
|
||||
expand_crate_str(
|
||||
"macro_rules! my_method (() => fn thirteen(&self) -> int {13})
|
||||
"macro_rules! my_method (() => (fn thirteen(&self) -> int {13}))
|
||||
struct A;
|
||||
impl A{ my_method!()}
|
||||
fn f(){A.thirteen;}".to_string());
|
||||
|
||||
Reference in New Issue
Block a user