summaryrefslogtreecommitdiffstats
path: root/tests/ui/chalkify/type_inference.stderr
diff options
context:
space:
mode:
Diffstat (limited to 'tests/ui/chalkify/type_inference.stderr')
-rw-r--r--tests/ui/chalkify/type_inference.stderr20
1 files changed, 20 insertions, 0 deletions
diff --git a/tests/ui/chalkify/type_inference.stderr b/tests/ui/chalkify/type_inference.stderr
new file mode 100644
index 000000000..508a6dd13
--- /dev/null
+++ b/tests/ui/chalkify/type_inference.stderr
@@ -0,0 +1,20 @@
+error[E0277]: the trait bound `{float}: Bar` is not satisfied
+ --> $DIR/type_inference.rs:27:14
+ |
+LL | only_bar(x);
+ | -------- ^ the trait `Bar` is not implemented for `{float}`
+ | |
+ | required by a bound introduced by this call
+ |
+ = help: the following other types implement trait `Bar`:
+ i32
+ u32
+note: required by a bound in `only_bar`
+ --> $DIR/type_inference.rs:12:16
+ |
+LL | fn only_bar<T: Bar>(_x: T) { }
+ | ^^^ required by this bound in `only_bar`
+
+error: aborting due to previous error
+
+For more information about this error, try `rustc --explain E0277`.