Docs for Cargo Test mislieadingly imply that examples can be built and run as tests #11528
Labels
A-documenting-cargo-itself
Area: Cargo's documentation
C-bug
Category: bug
Command-test
S-accepted
Status: Issue or feature is accepted, and has a team member available to help mentor or review
Problem
(Possible alternative title: Cargo Test does not run examples as tests when commanded)
(Relevant confusion in reddit thread here)
When read literally, line 140 of Cargo Test docs states that Cargo can reinterpret the main function of an example binary as a test, and execute it.
Since cargo does not appear to do this, a wording that does not have the misleading reading might be appropriate here.
Steps
No response
Possible Solution(s)
No response
Notes
No response
Version
No response
The text was updated successfully, but these errors were encountered: