]> git.lizzy.rs Git - rust.git/blobdiff - tests/ui/expect_fun_call.rs
Auto merge of #3603 - xfix:random-state-lint, r=phansch
[rust.git] / tests / ui / expect_fun_call.rs
index cf764c43694a101c4a6f37e088df07b1cd695854..8afffa4d84345b03d247444cb51dbebf93d19a16 100644 (file)
@@ -16,7 +16,9 @@ fn expect_fun_call() {
     struct Foo;
 
     impl Foo {
-        fn new() -> Self { Foo }
+        fn new() -> Self {
+            Foo
+        }
 
         fn expect(&self, msg: &str) {
             panic!("{}", msg)