fork/rust
git clone https://git.julia.blue/fork/rust
3bcad65fbf6
master
1error[E0515]: cannot return value referencing function parameter `val` 2 --> $DIR/impl-on-dyn-trait-with-implicit-static-bound-needing-more-suggestions.rs:21:9 3 | 4LL | val.use_self() 5 | ---^^^^^^^^^^^ 6 | | 7 | returns a value referencing data owned by the current function 8 | `val` is borrowed here 9 10error[E0515]: cannot return value referencing function parameter `val` 11 --> $DIR/impl-on-dyn-trait-with-implicit-static-bound-needing-more-suggestions.rs:43:9 12 | 13LL | val.use_self() 14 | ---^^^^^^^^^^^ 15 | | 16 | returns a value referencing data owned by the current function 17 | `val` is borrowed here 18 19error[E0515]: cannot return value referencing function parameter `val` 20 --> $DIR/impl-on-dyn-trait-with-implicit-static-bound-needing-more-suggestions.rs:109:9 21 | 22LL | val.use_self() 23 | ---^^^^^^^^^^^ 24 | | 25 | returns a value referencing data owned by the current function 26 | `val` is borrowed here 27 28error: aborting due to 3 previous errors 29 30For more information about this error, try `rustc --explain E0515`.