about summary refs log tree commit diff
path: root/src/test/ui/error-codes
diff options
context:
space:
mode:
authorMazdak Farrokhzad <twingoow@gmail.com>2019-10-29 04:08:21 +0100
committerGitHub <noreply@github.com>2019-10-29 04:08:21 +0100
commit9c5b6b2201a3af818a6efb0650b1622a342f40f5 (patch)
tree8380765a6f83c8190332c0e360ebbc0d1d79c6c5 /src/test/ui/error-codes
parentffc6225cd2db1d9634259aef38fd0197b12aacf9 (diff)
parent5c023d68d8b54d651e1775a69e999503ae5b2b30 (diff)
downloadrust-9c5b6b2201a3af818a6efb0650b1622a342f40f5.tar.gz
rust-9c5b6b2201a3af818a6efb0650b1622a342f40f5.zip
Rollup merge of #65562 - Patryk27:master, r=estebank
Improve the "try using a variant of the expected type" hint.

Fix https://github.com/rust-lang/rust/issues/65494.

- Change type-printing output.
- Use `span_to_snippet` when possible.
- Change the message to `try using a variant of the expected enum`
Diffstat (limited to 'src/test/ui/error-codes')
-rw-r--r--src/test/ui/error-codes/E0164.stderr2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/test/ui/error-codes/E0164.stderr b/src/test/ui/error-codes/E0164.stderr
index 4bbddb1978c..0db89dfec84 100644
--- a/src/test/ui/error-codes/E0164.stderr
+++ b/src/test/ui/error-codes/E0164.stderr
@@ -1,4 +1,4 @@
-error[E0164]: expected tuple struct or tuple variant, found associated constant `<Foo>::B`
+error[E0164]: expected tuple struct or tuple variant, found associated constant `Foo::B`
   --> $DIR/E0164.rs:9:9
    |
 LL |         Foo::B(i) => i,