summary refs log tree commit diff
path: root/src/test/ui/parser
diff options
context:
space:
mode:
authorMazdak Farrokhzad <twingoow@gmail.com>2019-03-29 12:32:26 +0100
committerGitHub <noreply@github.com>2019-03-29 12:32:26 +0100
commitfda206633da99468b4f813a2f888e05e31bafa2d (patch)
treef61f165ab84dc996ed1b412aa5fdfdb64e1ae279 /src/test/ui/parser
parent647d09fced568c7275211e3d7e1a084d94757a2a (diff)
parent4644c3a6aa0ff0ad394175a029f5531728ecff31 (diff)
downloadrust-fda206633da99468b4f813a2f888e05e31bafa2d.tar.gz
rust-fda206633da99468b4f813a2f888e05e31bafa2d.zip
Rollup merge of #59467 - hgallagher1993:local_branch, r=estebank
Better diagnostic for binary operation on BoxedValues

Fixes #59458
Diffstat (limited to 'src/test/ui/parser')
-rw-r--r--src/test/ui/parser/require-parens-for-chained-comparison.stderr6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/test/ui/parser/require-parens-for-chained-comparison.stderr b/src/test/ui/parser/require-parens-for-chained-comparison.stderr
index 4597b143215..8899b0d43cd 100644
--- a/src/test/ui/parser/require-parens-for-chained-comparison.stderr
+++ b/src/test/ui/parser/require-parens-for-chained-comparison.stderr
@@ -38,10 +38,12 @@ LL |     false == 0 < 2;
               found type `{integer}`
 
 error[E0369]: binary operation `<` cannot be applied to type `fn() {f::<_>}`
-  --> $DIR/require-parens-for-chained-comparison.rs:13:5
+  --> $DIR/require-parens-for-chained-comparison.rs:13:6
    |
 LL |     f<X>();
-   |     ^^^
+   |     -^- X
+   |     |
+   |     fn() {f::<_>}
    |
    = note: an implementation of `std::cmp::PartialOrd` might be missing for `fn() {f::<_>}`