]> git.lizzy.rs Git - rust.git/blob - tests/ui/suggestions/impl-on-dyn-trait-with-implicit-static-bound-needing-more-suggestions.stderr
Tweak use of trimmed paths
[rust.git] / tests / ui / suggestions / impl-on-dyn-trait-with-implicit-static-bound-needing-more-suggestions.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`.