Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Lifetimes slides need updating #146

Open
jonathanpallant opened this issue Mar 11, 2024 · 0 comments
Open

Lifetimes slides need updating #146

jonathanpallant opened this issue Mar 11, 2024 · 0 comments

Comments

@jonathanpallant
Copy link
Member

  • On slide 5, the error presented is not the error rustc gives you today
  • The use of a static VARIABLE: &'static str = "foo" is unnecessarily complex, and conflates two things with static lifetime:
    • the string slice reference
    • the bytes the string slice is referencing
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant