rust/tests/ui/traits/inductive-overflow
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
..
lifetime.rs oops! new unsoundness 2023-03-05 12:49:01 +03:00
lifetime.stderr Deduplicate more sized errors on call exprs 2024-01-24 02:53:15 +00:00
simultaneous.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
simultaneous.stderr Deduplicate more sized errors on call exprs 2024-01-24 02:53:15 +00:00
supertrait-auto-trait.rs Do not register Self: AutoTrait when confirming auto trait 2025-03-09 02:00:01 +00:00
supertrait-auto-trait.stderr Tweak auto trait errors 2025-08-04 17:20:07 +00:00
supertrait.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
supertrait.stderr Deduplicate more sized errors on call exprs 2024-01-24 02:53:15 +00:00
two-traits.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
two-traits.stderr Mention type parameter in more cases and don't suggest ~const bound already there 2024-12-07 21:37:13 +00:00