rust/tests/ui/offset-of
Esteban Küber dfa75391f8 Suggest field typo through derefs
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-11-16 17:00:23 +00:00
..
auxiliary
offset-of-arg-count.rs don't skip inference for type in offset_of! 2023-05-20 15:20:27 +02:00
offset-of-arg-count.stderr Migrate offset_of from a macro to builtin # syntax 2023-05-05 21:44:13 +02:00
offset-of-builtin.rs Add feature gate 2023-05-05 21:44:48 +02:00
offset-of-builtin.stderr Migrate offset_of from a macro to builtin # syntax 2023-05-05 21:44:13 +02:00
offset-of-dst-field.rs Check tuple elements are Sized in offset_of 2023-06-02 01:18:59 +00:00
offset-of-dst-field.stderr Warn on unused offset_of!() result 2023-06-21 11:43:14 +03:00
offset-of-enum.rs Feature gate enums in offset_of 2023-11-03 13:16:47 +00:00
offset-of-enum.stderr Update based on wesleywiser review 2023-10-31 23:41:40 +00:00
offset-of-inference.rs don't skip inference for type in offset_of! 2023-05-20 15:20:27 +02:00
offset-of-inference.stderr don't skip inference for type in offset_of! 2023-05-20 15:20:27 +02:00
offset-of-must-use.rs Warn on unused offset_of!() result 2023-06-21 11:43:14 +03:00
offset-of-must-use.stderr Warn on unused offset_of!() result 2023-06-21 11:43:14 +03:00
offset-of-output-type.rs Add more tests for the offset_of!() macro 2023-05-18 13:16:17 +02:00
offset-of-output-type.stderr Point to where missing return type should go 2023-10-04 21:09:54 +00:00
offset-of-private.rs Feature gate enums in offset_of 2023-11-03 13:16:47 +00:00
offset-of-private.stderr Support enum variants in offset_of! 2023-10-31 23:25:54 +00:00
offset-of-self.rs Add more tests for the offset_of!() macro 2023-05-18 13:16:17 +02:00
offset-of-self.stderr Suggest field typo through derefs 2023-11-16 17:00:23 +00:00
offset-of-tuple-nested.rs Support float-like tuple indices in offset_of!() 2023-06-08 23:42:58 +02:00
offset-of-tuple.rs Support float-like tuple indices in offset_of!() 2023-06-08 23:42:58 +02:00
offset-of-tuple.stderr Warn on unused offset_of!() result 2023-06-21 11:43:14 +03:00
offset-of-unsized.rs Check tuple elements are Sized in offset_of 2023-06-02 01:18:59 +00:00
offset-of-unstable-with-feature.rs
offset-of-unstable.rs
offset-of-unstable.stderr Migrate offset_of from a macro to builtin # syntax 2023-05-05 21:44:13 +02:00