chiark / gitweb /
adjust re node.js ishness
[talk-2019-ghm-rust.git] / dangling-err.txt
1 error[E0106]: missing lifetime specifier
2  --> main.rs:5:16
3   |
4 5 | fn dangle() -> &String {
5   |                ^ expected lifetime parameter
6   |
7   = help: this function's return type contains a borrowed
8     value, but there is no value for it to be borrowed from
9   = help: consider giving it a 'static lifetime