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
{{ message }}
Repository navigation
1.99 beta crater regression: "expected item after attributes" #162352
The code in this case has a typoed last line of documentation:
/// # } /// ```
This is, inside of a doctest, a closing brace, followed by a doc comment, without anything for the doc comment to attach to. So, if this test used to pass, it did so erroneously, perhaps by the doc comment attaching to some item appended to the doctest. #162349 appears to also have such a situation.
Activity
kpreid commentedon Sep 6, 2026
The code in this case has a typoed last line of documentation:
/// # } /// ```This is, inside of a doctest, a closing brace, followed by a doc comment, without anything for the doc comment to attach to. So, if this test used to pass, it did so erroneously, perhaps by the doc comment attaching to some item appended to the doctest. #162349 appears to also have such a situation.
maxdexh commentedon Sep 6, 2026
It does work on stable though. Using
--test-builder-wrapper:Code:
Input to rustc on stable:
Input to rustc on beta:
Rollup merge of rust-lang#162386 - JonathanBrouwer:doctest-attribute,…
Unrolled build for #162386 in rollup 162434
Rollup merge of #162386 - JonathanBrouwer:doctest-attribute, r=mejrs