diff --git a/tests/source/configs-fn_call_style-block.rs b/tests/source/configs-fn_call_style-block.rs index c4fa4aa5f4c..aae6693f43f 100644 --- a/tests/source/configs-fn_call_style-block.rs +++ b/tests/source/configs-fn_call_style-block.rs @@ -8,6 +8,14 @@ fn main() { // chain let x = yooooooooooooo.fooooooooooooooo.baaaaaaaaaaaaar(hello, world); + + // #1380 + { + { + let creds = self.client + .client_credentials(&self.config.auth.oauth2.id, &self.config.auth.oauth2.secret)?; + } + } } // #1521 diff --git a/tests/target/configs-fn_call_style-block.rs b/tests/target/configs-fn_call_style-block.rs index 2b2dbef7c61..2ac5340059c 100644 --- a/tests/target/configs-fn_call_style-block.rs +++ b/tests/target/configs-fn_call_style-block.rs @@ -22,6 +22,16 @@ fn main() { hello, world, ); + + // #1380 + { + { + let creds = self.client.client_credentials( + &self.config.auth.oauth2.id, + &self.config.auth.oauth2.secret, + )?; + } + } } // #1521