]> git.proxmox.com Git - rustc.git/blobdiff - src/test/ui/suggestions/impl-on-dyn-trait-with-implicit-static-bound-needing-more-suggestions.stderr
New upstream version 1.56.0~beta.4+dfsg1
[rustc.git] / src / test / ui / suggestions / impl-on-dyn-trait-with-implicit-static-bound-needing-more-suggestions.stderr
index 00971b41c7ce652e5b2bffc185aab7278d7324df..29991b6572fb42b413b57743f53730045e4b4e8e 100644 (file)
@@ -11,7 +11,7 @@ LL |     }
 help: you can add a bound to the opaque type to make it last less than `'static` and match `'a`
    |
 LL |     fn use_it<'a>(val: Box<dyn ObjectTrait<Assoc = i32>>) -> impl OtherTrait<'a> + 'a {
-   |                                                                                  ^^^^
+   |                                                                                  ++++
 
 error[E0515]: cannot return value referencing function parameter `val`
   --> $DIR/impl-on-dyn-trait-with-implicit-static-bound-needing-more-suggestions.rs:43:9
@@ -49,7 +49,7 @@ LL |         fn use_self(&self) -> &() { panic!() }
 help: consider relaxing the implicit `'static` requirement
    |
 LL |     impl MyTrait for Box<dyn ObjectTrait<Assoc = i32> + '_> {
-   |                                                       ^^^^
+   |                                                       ++++
 
 error: aborting due to 4 previous errors