diff options
Diffstat (limited to '')
-rw-r--r-- | src/test/ui/chalkify/type_inference.stderr | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/src/test/ui/chalkify/type_inference.stderr b/src/test/ui/chalkify/type_inference.stderr new file mode 100644 index 000000000..508a6dd13 --- /dev/null +++ b/src/test/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`. |