]> git.proxmox.com Git - rustc.git/blob - src/test/ui/suggestions/impl-on-dyn-trait-with-implicit-static-bound-needing-more-suggestions.nll.stderr
New upstream version 1.62.1+dfsg1
[rustc.git] / src / test / ui / suggestions / impl-on-dyn-trait-with-implicit-static-bound-needing-more-suggestions.nll.stderr
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
3 |
4 LL | val.use_self()
5 | ^^^^^^^^^^^^^^ returns a reference to data owned by the current function
6
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
9 |
10 LL | val.use_self()
11 | ^^^^^^^^^^^^^^ returns a reference to data owned by the current function
12
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
15 |
16 LL | val.use_self()
17 | ^^^^^^^^^^^^^^ returns a reference to data owned by the current function
18
19 error: aborting due to 3 previous errors
20
21 For more information about this error, try `rustc --explain E0515`.