summaryrefslogtreecommitdiffstats
path: root/tests/ui/type/type-check/point-at-inference-4.rs
diff options
context:
space:
mode:
Diffstat (limited to 'tests/ui/type/type-check/point-at-inference-4.rs')
-rw-r--r--tests/ui/type/type-check/point-at-inference-4.rs3
1 files changed, 3 insertions, 0 deletions
diff --git a/tests/ui/type/type-check/point-at-inference-4.rs b/tests/ui/type/type-check/point-at-inference-4.rs
index aea9b2c6c..3deb234c2 100644
--- a/tests/ui/type/type-check/point-at-inference-4.rs
+++ b/tests/ui/type/type-check/point-at-inference-4.rs
@@ -11,8 +11,11 @@ fn main() {
let s = S(None);
s.infer(0i32);
//~^ ERROR this method takes 2 arguments but 1 argument was supplied
+ //~| NOTE this argument has type `i32`...
+ //~| NOTE ... which causes `s` to have type `S<i32, _>`
//~| NOTE an argument is missing
//~| HELP provide the argument
+ //~| HELP change the type of the numeric literal from `i32` to `u32`
let t: S<u32, _> = s;
//~^ ERROR mismatched types
//~| NOTE expected `S<u32, _>`, found `S<i32, _>`