diff options
| author | Andy Russell <arussell123@gmail.com> | 2018-12-20 18:10:46 -0500 |
|---|---|---|
| committer | Andy Russell <arussell123@gmail.com> | 2018-12-31 12:52:30 -0500 |
| commit | dfc326d0e212bd644d04906ca21bb012cf970cb4 (patch) | |
| tree | 6e8e22597c6731a24a95d0201e6654b44000802f /src/test/ui/tuple | |
| parent | 79d8a0fcefa5134db2a94739b1d18daa01fc6e9f (diff) | |
| download | rust-dfc326d0e212bd644d04906ca21bb012cf970cb4.tar.gz rust-dfc326d0e212bd644d04906ca21bb012cf970cb4.zip | |
use structured suggestions for nonexistent fields
Diffstat (limited to 'src/test/ui/tuple')
| -rw-r--r-- | src/test/ui/tuple/tuple-index-not-tuple.stderr | 2 | ||||
| -rw-r--r-- | src/test/ui/tuple/tuple-index-out-of-bounds.stderr | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/src/test/ui/tuple/tuple-index-not-tuple.stderr b/src/test/ui/tuple/tuple-index-not-tuple.stderr index ab9ac4c4142..a1bcdfaedbc 100644 --- a/src/test/ui/tuple/tuple-index-not-tuple.stderr +++ b/src/test/ui/tuple/tuple-index-not-tuple.stderr @@ -2,7 +2,7 @@ error[E0609]: no field `0` on type `Point` --> $DIR/tuple-index-not-tuple.rs:6:12 | LL | origin.0; - | ^ did you mean `x`? + | ^ help: a field with a similar name exists: `x` error[E0609]: no field `0` on type `Empty` --> $DIR/tuple-index-not-tuple.rs:8:11 diff --git a/src/test/ui/tuple/tuple-index-out-of-bounds.stderr b/src/test/ui/tuple/tuple-index-out-of-bounds.stderr index 86e977a01b7..7d7c5cd7892 100644 --- a/src/test/ui/tuple/tuple-index-out-of-bounds.stderr +++ b/src/test/ui/tuple/tuple-index-out-of-bounds.stderr @@ -2,7 +2,7 @@ error[E0609]: no field `2` on type `Point` --> $DIR/tuple-index-out-of-bounds.rs:7:12 | LL | origin.2; - | ^ did you mean `0`? + | ^ help: a field with a similar name exists: `0` error[E0609]: no field `2` on type `({integer}, {integer})` --> $DIR/tuple-index-out-of-bounds.rs:12:11 |
