]> git.lizzy.rs Git - rust.git/blobdiff - src/test/ui/mismatched_types/overloaded-calls-bad.stderr
Remove E0308 note when primary label has all info
[rust.git] / src / test / ui / mismatched_types / overloaded-calls-bad.stderr
index bcb316e2bfb3f54bfd2c638205e88a3575771c55..b57ceb08b172555ebed76bd9e372bd9cbf2f50e3 100644 (file)
@@ -2,10 +2,7 @@ error[E0308]: mismatched types
   --> $DIR/overloaded-calls-bad.rs:28:17
    |
 LL |     let ans = s("what");
-   |                 ^^^^^^ expected isize, found reference
-   |
-   = note: expected type `isize`
-              found type `&'static str`
+   |                 ^^^^^^ expected isize, found &str
 
 error[E0057]: this function takes 1 parameter but 0 parameters were supplied
   --> $DIR/overloaded-calls-bad.rs:29:15