You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
should really be &'static str. It's actually a bug (rust-lang/rust#2478) that not having the lifetime is even possible. (The compiler inserts anonymous lifetimes where they are missing, but 'static is the super-lifetime of everything, including these anonymous ones, so the &'static str string literals satisfy the return type.)
The text was updated successfully, but these errors were encountered:
E.g. http://rustbyexample.com/examples/tuples/README.html
should really be
&'static str
. It's actually a bug (rust-lang/rust#2478) that not having the lifetime is even possible. (The compiler inserts anonymous lifetimes where they are missing, but'static
is the super-lifetime of everything, including these anonymous ones, so the&'static str
string literals satisfy the return type.)The text was updated successfully, but these errors were encountered: