1 error[E0515]: cannot return reference to function parameter `val`
2 --> $DIR/impl-on-dyn-trait-with-implicit-static-bound-needing-more-suggestions.rs:21:9
5 | ^^^^^^^^^^^^^^ returns a reference to data owned by the current function
7 error[E0515]: cannot return reference to function parameter `val`
8 --> $DIR/impl-on-dyn-trait-with-implicit-static-bound-needing-more-suggestions.rs:43:9
11 | ^^^^^^^^^^^^^^ returns a reference to data owned by the current function
13 error[E0515]: cannot return reference to function parameter `val`
14 --> $DIR/impl-on-dyn-trait-with-implicit-static-bound-needing-more-suggestions.rs:109:9
17 | ^^^^^^^^^^^^^^ returns a reference to data owned by the current function
19 error: aborting due to 3 previous errors
21 For more information about this error, try `rustc --explain E0515`.