diff options
Diffstat (limited to 'tests/ui/lifetimes/missing-lifetime-specifier-13497.stderr')
| -rw-r--r-- | tests/ui/lifetimes/missing-lifetime-specifier-13497.stderr | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/tests/ui/lifetimes/missing-lifetime-specifier-13497.stderr b/tests/ui/lifetimes/missing-lifetime-specifier-13497.stderr new file mode 100644 index 00000000000..99f4fa04f12 --- /dev/null +++ b/tests/ui/lifetimes/missing-lifetime-specifier-13497.stderr @@ -0,0 +1,20 @@ +error[E0106]: missing lifetime specifier + --> $DIR/missing-lifetime-specifier-13497.rs:4:5 + | +LL | &str + | ^ expected named lifetime parameter + | + = help: this function's return type contains a borrowed value, but there is no value for it to be borrowed from +help: consider using the `'static` lifetime, but this is uncommon unless you're returning a borrowed value from a `const` or a `static` + | +LL | &'static str + | +++++++ +help: instead, you are more likely to want to return an owned value + | +LL - &str +LL + String + | + +error: aborting due to 1 previous error + +For more information about this error, try `rustc --explain E0106`. |
