summaryrefslogtreecommitdiffstats
path: root/tests/ui/type/type-check/point-at-inference.stderr
diff options
context:
space:
mode:
Diffstat (limited to 'tests/ui/type/type-check/point-at-inference.stderr')
-rw-r--r--tests/ui/type/type-check/point-at-inference.stderr19
1 files changed, 19 insertions, 0 deletions
diff --git a/tests/ui/type/type-check/point-at-inference.stderr b/tests/ui/type/type-check/point-at-inference.stderr
new file mode 100644
index 000000000..2e17e5c5f
--- /dev/null
+++ b/tests/ui/type/type-check/point-at-inference.stderr
@@ -0,0 +1,19 @@
+error[E0308]: mismatched types
+ --> $DIR/point-at-inference.rs:11:9
+ |
+LL | bar(foo);
+ | --- ^^^ expected `i32`, found `&{integer}`
+ | |
+ | arguments to this function are incorrect
+ |
+ = note: expected struct `Vec<i32>`
+ found struct `Vec<&{integer}>`
+note: function defined here
+ --> $DIR/point-at-inference.rs:1:4
+ |
+LL | fn bar(_: Vec<i32>) {}
+ | ^^^ -----------
+
+error: aborting due to previous error
+
+For more information about this error, try `rustc --explain E0308`.