From ab8129069ae9dfa2f3fed28cd122f3f0717a4d73 Mon Sep 17 00:00:00 2001 From: Seiichi Uchida Date: Tue, 5 Dec 2017 08:41:10 +0900 Subject: [PATCH] Add a test for #1209 --- tests/source/macros.rs | 6 ++++++ tests/target/macros.rs | 6 ++++++ 2 files changed, 12 insertions(+) diff --git a/tests/source/macros.rs b/tests/source/macros.rs index ff24939668c..c282497960a 100644 --- a/tests/source/macros.rs +++ b/tests/source/macros.rs @@ -224,3 +224,9 @@ fn special_case_macros() { // assert! assert!(result, "Arr! While plunderin' the hold, we got '{}' when given '{}' (we expected '{}')", result, input, expected); } + +// #1209 +impl Foo { + /// foo + pub fn foo(&self) -> Bar {} +} diff --git a/tests/target/macros.rs b/tests/target/macros.rs index 8b22a457463..00da2344307 100644 --- a/tests/target/macros.rs +++ b/tests/target/macros.rs @@ -284,3 +284,9 @@ fn special_case_macros() { result, input, expected ); } + +// #1209 +impl Foo { + /// foo + pub fn foo(&self) -> Bar {} +} -- 2.44.0