rust/tests/ui/impl-header-lifetime-elision
Esteban Küber 04804c713e Tweak wording in associated type with anon lifetime error
Move the previous long message to a note and use a shorter primary message:

```
error: missing lifetime in associated type
  --> $DIR/missing-lifetime-in-assoc-type-1.rs:9:17
   |
LL | impl<'a> IntoIterator for &S {
   |     ---- there is a named lifetime specified on the impl block you could use
...
LL |     type Item = &T;
   |                 ^ this lifetime must come from the implemented type
   |
note: in the trait the associated type is declared without lifetime parameters, so using a borrowed type for them requires that lifetime to come from the implemented type
  --> $SRC_DIR/core/src/iter/traits/collect.rs:LL:COL
help: consider using the lifetime from the impl block
   |
LL |     type Item = &'a T;
   |                  ++
```
2025-11-03 02:13:53 +00:00
..
assoc-type.rs Tweak wording in associated type with anon lifetime error 2025-11-03 02:13:53 +00:00
assoc-type.stderr Tweak wording in associated type with anon lifetime error 2025-11-03 02:13:53 +00:00
bare_type.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
constant-used-as-arraylen.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
dyn-trait.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
dyn-trait.stderr Show number in error message even for one error 2023-11-24 19:15:52 +01:00
explicit-and-elided-same-header.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
inherent-impl.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
path-elided.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
path-elided.stderr Show number in error message even for one error 2023-11-24 19:15:52 +01:00
path-underscore.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
ref-underscore.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
trait-elided.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
trait-elided.stderr Show number in error message even for one error 2023-11-24 19:15:52 +01:00
trait-underscore.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00