fork/rust

git clone https://git.julia.blue/fork/rust

borsAuto merge of #103046 - JanBeh:PR_clarify_cmp_terminology, r=workingjubilee3bcad65fbf6

master
1.1 KiB30 linesraw
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`.