rust/tests/ui/lifetimes
Esteban Küber 092ecca5b9 Point at tail expression on rpit E0277
```
error[E0277]: the trait bound `{gen block@$DIR/gen_block_is_coro.rs:7:5: 7:8}: Coroutine` is not satisfied
  --> $DIR/gen_block_is_coro.rs:6:13
   |
LL | fn foo() -> impl Coroutine<Yield = u32, Return = ()> {
   |             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the trait `Coroutine` is not implemented for `{gen block@$DIR/gen_block_is_coro.rs:7:5: 7:8}`
LL |     gen { yield 42 }
   |     ---------------- return type was inferred to be `{gen block@$DIR/gen_block_is_coro.rs:7:5: 7:8}` here
```

The secondary span label is new.
2024-11-02 03:08:04 +00:00
..
auxiliary
lifetime-errors elided_named_lifetimes: bless & add tests 2024-08-31 15:35:42 +03:00
raw Add some more tests 2024-09-06 10:32:48 -04:00
anonymize-unnamed-bound-vars-in-binders.rs
bare-trait-object-borrowck.rs
bare-trait-object.rs
borrowck-let-suggestion.rs
borrowck-let-suggestion.stderr
conflicting-bounds.rs
conflicting-bounds.stderr
copy_modulo_regions.rs
copy_modulo_regions.stderr
could-not-resolve-issue-121503.rs
could-not-resolve-issue-121503.stderr
elided-lifetime-in-anon-const.rs
elided-lifetime-in-param-pat.rs
elided-lifetime-in-path-in-impl-Fn.rs
elided-lifetime-in-path-in-pat.rs
elided-lifetime-in-path-in-type-relative-expression.rs
elided-lint-in-mod.rs Remove crate_level_only from ELIDED_LIFETIMES_IN_PATHS 2024-07-30 16:42:53 -04:00
elided-lint-in-mod.stderr Remove crate_level_only from ELIDED_LIFETIMES_IN_PATHS 2024-07-30 16:42:53 -04:00
fullwidth-ampersand.rs
fullwidth-ampersand.stderr
issue-17728.rs
issue-17728.stderr
issue-19707.rs
issue-19707.stderr
issue-26638.rs
issue-26638.stderr
issue-34979.rs
issue-34979.stderr
issue-36744-without-calls.rs
issue-54378.rs
issue-55796.rs
issue-55796.stderr
issue-64173-unused-lifetimes.rs
issue-64173-unused-lifetimes.stderr
issue-67498.rs
issue-69314.fixed
issue-69314.rs
issue-69314.stderr
issue-70917-lifetimes-in-fn-def.rs
issue-76168-hr-outlives-2.rs
issue-76168-hr-outlives-3.rs
issue-76168-hr-outlives-3.stderr
issue-76168-hr-outlives.rs
issue-77175.rs
issue-79187-2.rs
issue-79187-2.stderr
issue-79187.rs
issue-79187.stderr
issue-83737-binders-across-types.rs
issue-83737-erasing-bound-vars.rs
issue-83753-invalid-associated-type-supertrait-hrtb.rs
issue-83753-invalid-associated-type-supertrait-hrtb.stderr
issue-83907-invalid-fn-like-path.rs
issue-83907-invalid-fn-like-path.stderr
issue-84398.rs
issue-84604.rs
issue-90170-elision-mismatch.fixed
issue-90170-elision-mismatch.rs
issue-90170-elision-mismatch.stderr
issue-90600-expected-return-static-indirect.rs
issue-90600-expected-return-static-indirect.stderr be even more precise about "cast" vs "coercion" 2024-09-24 23:12:02 +02:00
issue-91763.rs
issue-91763.stderr
issue-93911.rs
issue-95023.rs Re-enable ConstArgKind::Path lowering by default 2024-09-12 13:56:01 -04:00
issue-95023.stderr Re-enable ConstArgKind::Path lowering by default 2024-09-12 13:56:01 -04:00
issue-97193.rs
issue-97193.stderr
issue-97194.rs
issue-97194.stderr
issue-103582-hint-for-missing-lifetime-bound-on-trait-object-using-type-alias.fixed
issue-103582-hint-for-missing-lifetime-bound-on-trait-object-using-type-alias.rs
issue-103582-hint-for-missing-lifetime-bound-on-trait-object-using-type-alias.stderr
issue-104432-unused-lifetimes-in-expansion.rs
issue-105227.rs Bless test fallout 2024-08-17 12:43:25 -04:00
issue-105227.stderr Bless test fallout 2024-08-17 12:43:25 -04:00
issue-105507.fixed
issue-105507.rs
issue-105507.stderr
issue-105675.rs
issue-105675.stderr
issue-107492-default-value-for-lifetime.rs
issue-107492-default-value-for-lifetime.stderr
issue-107988.rs
issue-107988.stderr
lifetime-bound-will-change-warning.rs
lifetime-bound-will-change-warning.stderr
lifetime-doesnt-live-long-enough.rs
lifetime-doesnt-live-long-enough.stderr
lifetime-elision-return-type-requires-explicit-lifetime.rs elided_named_lifetimes: bless & add tests 2024-08-31 15:35:42 +03:00
lifetime-elision-return-type-requires-explicit-lifetime.stderr elided_named_lifetimes: bless & add tests 2024-08-31 15:35:42 +03:00
lifetime-elision-return-type-trait.rs
lifetime-elision-return-type-trait.stderr Point at tail expression on rpit E0277 2024-11-02 03:08:04 +00:00
lifetime-mismatch-between-trait-and-impl.rs
lifetime-mismatch-between-trait-and-impl.stderr
lifetime-no-keyword.rs
lifetime-no-keyword.stderr
missing-lifetime-in-alias.rs
missing-lifetime-in-alias.stderr
nested-binder-print.rs
nested-binder-print.stderr
nested.rs
no_lending_iterators.rs
no_lending_iterators.stderr
noisy-follow-up-erro.rs
noisy-follow-up-erro.stderr Revert suggestion verbosity change 2024-07-22 22:51:53 +00:00
re-empty-in-error.rs
re-empty-in-error.stderr
refcell-in-tail-expr.edition2021.stderr stabilize shorter-tail-lifetimes 2024-10-24 01:56:08 +08:00
refcell-in-tail-expr.rs stabilize shorter-tail-lifetimes 2024-10-24 01:56:08 +08:00
shadow.rs
shadow.stderr
shorter-tail-expr-lifetime.edition2021.stderr stabilize shorter-tail-lifetimes 2024-10-24 01:56:08 +08:00
shorter-tail-expr-lifetime.rs stabilize shorter-tail-lifetimes 2024-10-24 01:56:08 +08:00
suggest-introducing-and-adding-missing-lifetime.fixed
suggest-introducing-and-adding-missing-lifetime.rs
suggest-introducing-and-adding-missing-lifetime.stderr
tail-expr-in-nested-expr.rs stabilize shorter-tail-lifetimes 2024-10-24 01:56:08 +08:00
tail-expr-in-nested-expr.stderr stabilize shorter-tail-lifetimes 2024-10-24 01:56:08 +08:00
tail-expr-lock-poisoning.rs stabilize shorter-tail-lifetimes 2024-10-24 01:56:08 +08:00
temporary-lifetime-extension.rs
undeclared-lifetime-used-in-debug-macro-issue-70152.rs
undeclared-lifetime-used-in-debug-macro-issue-70152.stderr
unnamed-closure-doesnt-life-long-enough-issue-67634.rs
unnamed-closure-doesnt-life-long-enough-issue-67634.stderr
unusual-rib-combinations.rs fix(hir_analysis/wfcheck): don't leak {type error} 2024-09-29 23:40:43 -05:00
unusual-rib-combinations.stderr fix(hir_analysis/wfcheck): don't leak {type error} 2024-09-29 23:40:43 -05:00