rust/tests/ui/methods/issues
Esteban Küber 91e606b715 Tweak auto trait errors
Make suggestions to remove params and super traits tool-only, and make
the suggestion span more accurate.

```
error[E0567]: auto traits cannot have generic parameters
  --> $DIR/auto-trait-validation.rs:6:19
   |
LL | auto trait Generic<T> {}
   |            -------^^^
   |            |
   |            auto trait cannot have generic parameters

error[E0568]: auto traits cannot have super traits or lifetime bounds
  --> $DIR/auto-trait-validation.rs:8:20
   |
LL | auto trait Bound : Copy {}
   |            -----   ^^^^
   |            |
   |            auto traits cannot have super traits or lifetime bounds
```

```
error[E0380]: auto traits cannot have associated items
  --> $DIR/issue-23080.rs:5:8
   |
LL | unsafe auto trait Trait {
   |                   ----- auto traits cannot have associated items
LL |     fn method(&self) {
   |        ^^^^^^
```
2025-08-04 17:20:07 +00:00
..
account-for-shadowed-bindings-issue-123558.rs Note for E0599 if shadowed bindings has the method. 2024-05-20 18:53:17 +08:00
account-for-shadowed-bindings-issue-123558.stderr Note for E0599 if shadowed bindings has the method. 2024-05-20 18:53:17 +08:00
issue-61525.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
issue-61525.stderr Check for generic parameter mismatches on trait functions. 2025-02-03 12:54:53 -05:00
issue-84495.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
issue-84495.stderr Show number in error message even for one error 2023-11-24 19:15:52 +01:00
issue-90315.rs UI tests: add missing diagnostic kinds where possible 2025-04-08 23:06:31 +03:00
issue-90315.stderr Trim suggestion parts to the subset that is purely additive 2025-02-14 00:44:10 -08:00
issue-94581.fixed Be more lax in .into_iter() suggestion when encountering Iterator methods on non-Iterator 2024-03-03 18:53:36 +00:00
issue-94581.rs Be more lax in .into_iter() suggestion when encountering Iterator methods on non-Iterator 2024-03-03 18:53:36 +00:00
issue-94581.stderr Be more lax in .into_iter() suggestion when encountering Iterator methods on non-Iterator 2024-03-03 18:53:36 +00:00
issue-105732.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
issue-105732.stderr Tweak auto trait errors 2025-08-04 17:20:07 +00:00