summaryrefslogtreecommitdiffstats
path: root/tests/ui/type/type-check/point-at-inference-4.stderr
diff options
context:
space:
mode:
Diffstat (limited to 'tests/ui/type/type-check/point-at-inference-4.stderr')
-rw-r--r--tests/ui/type/type-check/point-at-inference-4.stderr11
1 files changed, 10 insertions, 1 deletions
diff --git a/tests/ui/type/type-check/point-at-inference-4.stderr b/tests/ui/type/type-check/point-at-inference-4.stderr
index 28833d2ed..5f7bb8b93 100644
--- a/tests/ui/type/type-check/point-at-inference-4.stderr
+++ b/tests/ui/type/type-check/point-at-inference-4.stderr
@@ -15,8 +15,13 @@ LL | s.infer(0i32, /* b */);
| ~~~~~~~~~~~~~~~
error[E0308]: mismatched types
- --> $DIR/point-at-inference-4.rs:16:24
+ --> $DIR/point-at-inference-4.rs:19:24
|
+LL | s.infer(0i32);
+ | - ---- this argument has type `i32`...
+ | |
+ | ... which causes `s` to have type `S<i32, _>`
+...
LL | let t: S<u32, _> = s;
| --------- ^ expected `S<u32, _>`, found `S<i32, _>`
| |
@@ -24,6 +29,10 @@ LL | let t: S<u32, _> = s;
|
= note: expected struct `S<u32, _>`
found struct `S<i32, _>`
+help: change the type of the numeric literal from `i32` to `u32`
+ |
+LL | s.infer(0u32);
+ | ~~~
error: aborting due to 2 previous errors