diff options
| author | lcnr <rust@lcnr.de> | 2025-08-12 11:51:46 +0200 |
|---|---|---|
| committer | lcnr <rust@lcnr.de> | 2025-08-20 11:04:38 +0200 |
| commit | 8365ad17da97bdc774aa167ad0d52c35d04745a0 (patch) | |
| tree | bdcfcf291e0b7f28da7f1e82a56bda1b5fb84c7c /tests/ui/suggestions/impl-on-dyn-trait-with-implicit-static-bound-needing-more-suggestions.rs | |
| parent | e255a9b28af44240686928df243f3afbf6999ad1 (diff) | |
| download | rust-8365ad17da97bdc774aa167ad0d52c35d04745a0.tar.gz rust-8365ad17da97bdc774aa167ad0d52c35d04745a0.zip | |
handle opaque types before region inference
Diffstat (limited to 'tests/ui/suggestions/impl-on-dyn-trait-with-implicit-static-bound-needing-more-suggestions.rs')
| -rw-r--r-- | tests/ui/suggestions/impl-on-dyn-trait-with-implicit-static-bound-needing-more-suggestions.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/ui/suggestions/impl-on-dyn-trait-with-implicit-static-bound-needing-more-suggestions.rs b/tests/ui/suggestions/impl-on-dyn-trait-with-implicit-static-bound-needing-more-suggestions.rs index c24672816ac..0f257a3cd24 100644 --- a/tests/ui/suggestions/impl-on-dyn-trait-with-implicit-static-bound-needing-more-suggestions.rs +++ b/tests/ui/suggestions/impl-on-dyn-trait-with-implicit-static-bound-needing-more-suggestions.rs @@ -18,7 +18,7 @@ mod bav { impl Bar for i32 {} fn use_it<'a>(val: Box<dyn ObjectTrait<Assoc = i32>>) -> impl OtherTrait<'a> { - val.use_self() //~ ERROR cannot return value referencing function parameter + val.use_self() //~ ERROR `val` does not live long enough } } |
