]> git.lizzy.rs Git - rust.git/blobdiff - src/test/ui/methods/method-ambig-one-trait-unknown-int-type.stderr
Point at type in `let` assignment on type errors
[rust.git] / src / test / ui / methods / method-ambig-one-trait-unknown-int-type.stderr
index 87e95c240803793751066f914e228b34f65c5c0f..fcd976475686f2bb102a3cf530888849acfb5a16 100644 (file)
@@ -10,7 +10,9 @@ error[E0308]: mismatched types
   --> $DIR/method-ambig-one-trait-unknown-int-type.rs:33:20
    |
 LL |     let y: usize = x.foo();
-   |                    ^^^^^^^ expected `usize`, found `isize`
+   |            -----   ^^^^^^^ expected `usize`, found `isize`
+   |            |
+   |            expected due to this
    |
 help: you can convert an `isize` to `usize` and panic if the converted value wouldn't fit
    |