]> git.lizzy.rs Git - rust.git/blobdiff - src/test/ui/pptypedef.stderr
Auto merge of #62339 - pnkfelix:issue-61188-use-visitor-for-structural-match-check...
[rust.git] / src / test / ui / pptypedef.stderr
index 32ee1a6aae99df40ff77cecebadc04472a2ade88..dc4b3ce370cb168d19734970aa10a3b9030057a6 100644 (file)
@@ -3,12 +3,20 @@ error[E0308]: mismatched types
    |
 LL |     let_in(3u32, |i| { assert!(i == 3i32); });
    |                                     ^^^^ expected u32, found i32
+help: change the type of the numeric literal from `i32` to `u32`
+   |
+LL |     let_in(3u32, |i| { assert!(i == 3u32); });
+   |                                     ^^^^
 
 error[E0308]: mismatched types
   --> $DIR/pptypedef.rs:8:37
    |
 LL |     let_in(3i32, |i| { assert!(i == 3u32); });
    |                                     ^^^^ expected i32, found u32
+help: change the type of the numeric literal from `u32` to `i32`
+   |
+LL |     let_in(3i32, |i| { assert!(i == 3i32); });
+   |                                     ^^^^
 
 error: aborting due to 2 previous errors