about summary refs log tree commit diff
path: root/tests/ui/parser/float-field.stderr
AgeCommit message (Collapse)AuthorLines
2025-08-07Account for bare tuples in field searching logicEsteban Küber-0/+6
When looking for the field names and types of a given type, account for tuples. This allows suggestions for incorrectly nested field accesses and field name typos to trigger as intended. Previously these suggestions only worked on `ty::Adt`, including tuple structs which are no different to tuples, so they should behave the same in suggestions. ``` error[E0599]: no method named `get_ref` found for tuple `(BufReader<File>,)` in the current scope --> $DIR/missing-field-access.rs:11:15 | LL | let x = f.get_ref(); | ^^^^^^^ method not found in `(BufReader<File>,)` | help: one of the expressions' fields has a method of the same name | LL | let x = f.0.get_ref(); | ++ ```
2024-02-28Use `LitKind::Err` for floats with unsupported bases.Nicholas Nethercote-59/+65
This slightly changes error messages in `float-field.rs`, but nothing of real importance.
2024-02-28Reformat `float-field.rs` test.Nicholas Nethercote-93/+93
- Put every literal in its own braces, rather than just some of them, for maximal error recovery. - Add a blank line between every case, for readability.
2023-11-16recover primary span labelEsteban Küber-11/+11
2023-11-16Suggest field typo through derefsEsteban Küber-8/+8
Take into account implicit dereferences when suggesting fields. ``` error[E0609]: no field `longname` on type `Arc<S>` --> $DIR/suggest-field-through-deref.rs:10:15 | LL | let _ = x.longname; | ^^^^^^^^ help: a field with a similar name exists: `long_name` ``` CC https://github.com/rust-lang/rust/issues/78374#issuecomment-719564114
2023-01-11Move /src/test to /testsAlbert Larsan-0/+349