rust/tests/ui/nll/user-annotations
Esteban Küber 75bb675f96 Do not suggest introducing lifetime in impl assoc type
```
error[E0261]: use of undeclared lifetime name `'a`
  --> $DIR/missing-lifetime-in-assoc-type-2.rs:7:57
   |
LL | impl IntoIterator for &S {
   |     - help: consider introducing lifetime `'a` here: `<'a>`
...
LL |     type IntoIter = std::collections::btree_map::Values<'a, i32, T>;
   |                                                         ^^ undeclared lifetime
```

```
error[E0106]: missing lifetime specifier
  --> $DIR/issue-74918-missing-lifetime.rs:9:30
   |
LL |     type Item = IteratorChunk<T, S>;
   |                              ^ expected named lifetime parameter
   |
help: consider introducing a named lifetime parameter
   |
LL ~ impl<'a, T, S: Iterator<Item = T>> Iterator for ChunkingIterator<T, S> {
LL ~     type Item = IteratorChunk<'a, T, S>;
   |
```
2025-10-31 20:45:33 +00:00
..
adt-brace-enums.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
adt-brace-enums.stderr Extend and use hir::Node::body_id 2023-04-19 19:13:45 +00:00
adt-brace-structs.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
adt-brace-structs.stderr Extend and use hir::Node::body_id 2023-04-19 19:13:45 +00:00
adt-nullary-enums.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
adt-nullary-enums.stderr best_blame_constraint: don't filter constraints by sup SCC 2025-01-06 16:08:29 -08:00
adt-tuple-enums.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
adt-tuple-enums.stderr Extend and use hir::Node::body_id 2023-04-19 19:13:45 +00:00
adt-tuple-struct-calls.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
adt-tuple-struct-calls.stderr only avoid blaming assignments from argument patterns 2025-01-06 16:12:11 -08:00
adt-tuple-struct.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
adt-tuple-struct.stderr Extend and use hir::Node::body_id 2023-04-19 19:13:45 +00:00
ascribed-type-wf.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
ascribed-type-wf.stderr Show number in error message even for one error 2023-11-24 19:15:52 +01:00
cast_static_lifetime.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
cast_static_lifetime.stderr use more accurate spans for user type ascriptions 2024-09-24 22:20:42 +02:00
closure-sig.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
closure-substs.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
closure-substs.stderr Move /src/test to /tests 2023-01-11 09:32:08 +00:00
constant-in-expr-inherent-1.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
constant-in-expr-inherent-1.stderr Show number in error message even for one error 2023-11-24 19:15:52 +01:00
constant-in-expr-inherent-2.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
constant-in-expr-inherent-2.stderr Tweak E0597 2023-01-15 19:46:20 +00:00
constant-in-expr-normalize.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
constant-in-expr-normalize.stderr Show number in error message even for one error 2023-11-24 19:15:52 +01:00
constant-in-expr-trait-item-1.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
constant-in-expr-trait-item-1.stderr Show number in error message even for one error 2023-11-24 19:15:52 +01:00
constant-in-expr-trait-item-2.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
constant-in-expr-trait-item-2.stderr Show number in error message even for one error 2023-11-24 19:15:52 +01:00
constant-in-expr-trait-item-3.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
constant-in-expr-trait-item-3.stderr Show number in error message even for one error 2023-11-24 19:15:52 +01:00
downcast-infer.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
dump-adt-brace-struct.rs update region debug formatting 2024-03-18 16:44:12 +00:00
dump-adt-brace-struct.stderr update region debug formatting 2024-03-18 16:44:12 +00:00
dump-fn-method.rs Split Bound into Canonical and Bound 2025-09-30 12:58:28 -04:00
dump-fn-method.stderr Split Bound into Canonical and Bound 2025-09-30 12:58:28 -04:00
fns.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
fns.stderr Extend and use hir::Node::body_id 2023-04-19 19:13:45 +00:00
inherent-associated-constants.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
inherent-associated-constants.stderr Show number in error message even for one error 2023-11-24 19:15:52 +01:00
issue-54124.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
issue-54124.stderr Move /src/test to /tests 2023-01-11 09:32:08 +00:00
issue-54570-bootstrapping.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
issue-55219.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
issue-55241.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
issue-55748-pat-types-constrain-bindings.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
issue-55748-pat-types-constrain-bindings.stderr Move /src/test to /tests 2023-01-11 09:32:08 +00:00
issue-57731-ascibed-coupled-types.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
issue-57731-ascibed-coupled-types.stderr Move /src/test to /tests 2023-01-11 09:32:08 +00:00
method-call.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
method-call.stderr Extend and use hir::Node::body_id 2023-04-19 19:13:45 +00:00
method-ufcs-1.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
method-ufcs-1.stderr only avoid blaming assignments from argument patterns 2025-01-06 16:12:11 -08:00
method-ufcs-2.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
method-ufcs-2.stderr only avoid blaming assignments from argument patterns 2025-01-06 16:12:11 -08:00
method-ufcs-3.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
method-ufcs-3.stderr Extend and use hir::Node::body_id 2023-04-19 19:13:45 +00:00
method-ufcs-inherent-1.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
method-ufcs-inherent-1.stderr Show number in error message even for one error 2023-11-24 19:15:52 +01:00
method-ufcs-inherent-2.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
method-ufcs-inherent-2.stderr Tweak E0597 2023-01-15 19:46:20 +00:00
method-ufcs-inherent-3.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
method-ufcs-inherent-3.stderr Show number in error message even for one error 2023-11-24 19:15:52 +01:00
method-ufcs-inherent-4.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
method-ufcs-inherent-4.stderr Tweak E0597 2023-01-15 19:46:20 +00:00
normalization-2.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
normalization-2.stderr Add a note to duplicate diagnostics 2023-10-05 01:04:41 +00:00
normalization-default.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
normalization-default.stderr Move /src/test to /tests 2023-01-11 09:32:08 +00:00
normalization-infer.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
normalization-infer.stderr remove trailing dots 2023-10-08 10:06:17 +00:00
normalization-self.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
normalization-self.stderr Move /src/test to /tests 2023-01-11 09:32:08 +00:00
normalization.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
normalization.stderr Tweak E0597 2023-01-15 19:46:20 +00:00
normalize-self-ty.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
normalizing-user-annotation.rs Normalize possibly unnormalized type in relate_type_and_user_type 2025-05-29 11:20:45 +00:00
pattern_substs_on_brace_enum_variant.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
pattern_substs_on_brace_enum_variant.stderr Tweak E0597 2023-01-15 19:46:20 +00:00
pattern_substs_on_brace_struct.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
pattern_substs_on_brace_struct.stderr Tweak E0597 2023-01-15 19:46:20 +00:00
pattern_substs_on_tuple_enum_variant.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
pattern_substs_on_tuple_enum_variant.stderr Tweak E0597 2023-01-15 19:46:20 +00:00
pattern_substs_on_tuple_struct.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
pattern_substs_on_tuple_struct.stderr Tweak E0597 2023-01-15 19:46:20 +00:00
patterns.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
patterns.stderr Tweak E0597 2023-01-15 19:46:20 +00:00
promoted-annotation.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
promoted-annotation.stderr only avoid blaming assignments from argument patterns 2025-01-06 16:12:11 -08:00
region-error-ice-109072.rs Stop being so bail-y in candidate assembly 2024-11-21 01:35:34 +00:00
region-error-ice-109072.stderr Do not suggest introducing lifetime in impl assoc type 2025-10-31 20:45:33 +00:00
type-annotation-with-hrtb.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
type_ascription_static_lifetime.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
type_ascription_static_lifetime.stderr use more accurate spans for user type ascriptions 2024-09-24 22:20:42 +02:00
wf-self-type.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
wf-self-type.stderr Show number in error message even for one error 2023-11-24 19:15:52 +01:00