chiark / gitweb /
wip
[talk-2019-ghm-rust.git] / dangling-err.txt
diff --git a/dangling-err.txt b/dangling-err.txt
new file mode 100644 (file)
index 0000000..f2142d2
--- /dev/null
@@ -0,0 +1,9 @@
+error[E0106]: missing lifetime specifier
+ --> main.rs:5:16
+  |
+5 | fn dangle() -> &String {
+  |                ^ expected 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 giving it a 'static lifetime