Compile failed for v-0.2.7 error[E0015]
Nobody has claimed this yet.
Assessment
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Newbie friendliness
- 30/100
- Issue type
- Bug
- Clarity
- Needs clarification
- Activity status
- Stale
- Tech stack
- rust
- Domain
- networking
Research direction
Reproduce the compilation failure and inspect /root/.cargo/registry/src/github.com-1ecc6299db9ec823/http-0.2.7/src/header/name.rs, especially the standard_headers! macro invocation around the reported line. Confirm the relevant Rust and http versions, then verify that the project compiles without error after the compatibility issue is addressed.
Written by the indexing model from the issue text.
Description
error[E0015]: calls in constant functions are limited to constant functions, tuple structs and tuple variants
--> /root/.cargo/registry/src/github.com-1ecc6299db9ec823/http-0.2.7/src/header/name.rs:98:25
|
98 | $name_bytes => Some(StandardHeader::$konst),
| ^^^^^^^^^^^
...
154 | / standard_headers! {
155 | | /// Advertises which content types the client is able to understand.
156 | | ///
157 | | /// The Accept request HTTP header advertises which content types, expressed
... |
972 | | (XXssProtection, X_XSS_PROTECTION, b"x-xss-protection");
973 | | }
| |_- in this macro invocation
|
= note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info)
- Dominant language
- Rust
- Stars
- 1.4k
- Forks
- 378
- Avg merge
- 1d 21h
- Merged PRs (30d)
- 5
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from hyperium/http
-
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
-
Difficulty 4/5 3-5 days Newbie friendliness 45/100
-
Difficulty 3/5 1-2 days Newbie friendliness 62/100
-
Difficulty 3/5 1-2 days Newbie friendliness 58/100
-
Difficulty 3/5 1-2 days Newbie friendliness 62/100
Similar issues
-
risk:low runtime status:in-progress type:test
Difficulty 1/5 Under an hour Newbie friendliness 92/100
zeroclaw-labs/zeroclaw#11023 ·
-
good first issue refactor
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 84/100
EricSpencer00/Resilient#4835 · 1 comment ·
-
agent:ready documentation
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
cesarferreira/stax#890 ·
-
bug
Difficulty 1/5 Under an hour Newbie friendliness 90/100