diff options
| author | Gavin Baker <gavinb@antonym.org> | 2016-09-28 19:27:23 +1000 |
|---|---|---|
| committer | Gavin Baker <gavinb@antonym.org> | 2016-10-02 15:57:39 +1100 |
| commit | 99aae9b834604788b58da8eac9156cc3715426e1 (patch) | |
| tree | c4a61a2ad18e03bd11d2627c590d69772554c3c2 /src/test/compile-fail/struct-fields-typo.rs | |
| parent | 8b00355119ba0473eae420049f96f5be91be1bab (diff) | |
| download | rust-99aae9b834604788b58da8eac9156cc3715426e1.tar.gz rust-99aae9b834604788b58da8eac9156cc3715426e1.zip | |
Improve error message and snippet for "did you mean `x`"
- Fixes #36164 - Part of #35233 - handles unknown fields - uses UI-style tests - update all related tests (cfail, ui, incremental)
Diffstat (limited to 'src/test/compile-fail/struct-fields-typo.rs')
| -rw-r--r-- | src/test/compile-fail/struct-fields-typo.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/test/compile-fail/struct-fields-typo.rs b/src/test/compile-fail/struct-fields-typo.rs index c897dc55204..0e30c1e86e4 100644 --- a/src/test/compile-fail/struct-fields-typo.rs +++ b/src/test/compile-fail/struct-fields-typo.rs @@ -18,7 +18,7 @@ fn main() { foo: 0, bar: 0.5, }; - let x = foo.baa;//~ ERROR attempted access of field `baa` on type `BuildData` - //~^ HELP did you mean `bar`? + let x = foo.baa;//~ no field `baa` on type `BuildData` + //~^ did you mean `bar`? println!("{}", x); } |
