rust-lang / rust-lang/rust-by-example

Static lifetime code doesn't work

Open
#1,967 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Handlebars
Stars
8.1k
Forks
1.6k
PR merge metrics
No merged PRs in 30d

Description

The code in static lifetime section doesn't compile.

I've submitted a PR here:

https://github.com/rust-lang/rust-by-example/pull/1961

however, it was closed without comment.

Can you let me know why the PR was rejected?

Thanks

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with the static lifetime section referenced in the issue and reproduce the compilation failure using the current example. Review the closed pull request at rust-lang/rust-by-example#1961 for context; the work is done when the section's code compiles.

Written by the indexing model from the issue text.

Assessment

Tech stack
rust
Domain
documentation
Issue type
Bug
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.