]> git.lizzy.rs Git - rust.git/blobdiff - src/test/ui/never_type/fallback-closure-wrap.fallback.stderr
Rollup merge of #98665 - ChrisDenton:deprecated-suggestion, r=compiler-errors
[rust.git] / src / test / ui / never_type / fallback-closure-wrap.fallback.stderr
index 24d45a3062310d5e4c93852b529e23628e8b1916..6b9635d4a60bcd889b794d08db7625fbf898b597 100644 (file)
@@ -8,9 +8,9 @@ LL | |         panic!("Can't connect to server.");
 LL | |     }) as Box<dyn FnMut()>);
    | |______^ expected `()`, found `!`
    |
-   = note: expected type `()`
-              found type `!`
-   = note: required for the cast to the object type `dyn FnMut()`
+   = note: expected unit type `()`
+                   found type `!`
+   = note: required for the cast from `[closure@$DIR/fallback-closure-wrap.rs:18:40: 21:6]` to the object type `dyn FnMut()`
 
 error: aborting due to previous error