Skip to content

Fix run-pass/match-borrowed_str.rs #7306

New issue

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

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

Already on GitHub? # to your account

Closed
emberian opened this issue Jun 22, 2013 · 1 comment
Closed

Fix run-pass/match-borrowed_str.rs #7306

emberian opened this issue Jun 22, 2013 · 1 comment
Labels
A-testsuite Area: The testsuite used to check the correctness of rustc C-cleanup Category: PRs that clean code up or issues documenting cleanup. E-easy Call for participation: Easy difficulty. Experience needed to fix: Not much. Good first issue.

Comments

@emberian
Copy link
Member

This is actually a really easy one. Instead of println, return a ~str and assert_eq!(f1(@"a"), "found a").

@nickdesaulniers
Copy link

dibs

yjh0502 pushed a commit to yjh0502/rust that referenced this issue Jun 28, 2013
flip1995 pushed a commit to flip1995/rust that referenced this issue Jul 29, 2021
… r=giraffate

Documented constant expression evaluation for `repeat_once`

Documents the fact that the `repeat_once` lint evaluates constant expressions

---

closes: rust-lang#7306

changelog: none
(I don't think it's worth a change log entry, as nothing has really changed)

r? `@giraffate` as you've implemented the lint and were part of the discussion in the issue 🙃
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
A-testsuite Area: The testsuite used to check the correctness of rustc C-cleanup Category: PRs that clean code up or issues documenting cleanup. E-easy Call for participation: Easy difficulty. Experience needed to fix: Not much. Good first issue.
Projects
None yet
Development

No branches or pull requests

2 participants