]> git.lizzy.rs Git - rust.git/commitdiff
Add a test for #1209
authorSeiichi Uchida <seuchida@gmail.com>
Mon, 4 Dec 2017 23:41:10 +0000 (08:41 +0900)
committerSeiichi Uchida <seuchida@gmail.com>
Mon, 4 Dec 2017 23:41:10 +0000 (08:41 +0900)
tests/source/macros.rs
tests/target/macros.rs

index ff24939668c24626a9edd2495dd5f914f81e6be7..c282497960a366313f999047d66e489589464775 100644 (file)
@@ -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<foo!(   )> {}
+}
index 8b22a45746311c454fa4f5b8f0121ae6b367def5..00da2344307247597553d1bcc5ef947dd60f8828 100644 (file)
@@ -284,3 +284,9 @@ fn special_case_macros() {
         result, input, expected
     );
 }
+
+// #1209
+impl Foo {
+    /// foo
+    pub fn foo(&self) -> Bar<foo!()> {}
+}