2 let reference_to_nothing = dangle();
5 fn dangle() -> &String {
6 let s = String::from("hello");
11 error[E0106]: missing lifetime specifier
14 5 | fn dangle() -> &String {
15 | ^ expected lifetime parameter
17 = help: this function's return type contains a borrowed
18 value, but there is no value for it to be borrowed from
19 = help: consider giving it a 'static lifetime