]> git.proxmox.com Git - cargo.git/commit - tests/testsuite/init/fossil_autodetect/out/src/lib.rs
Auto merge of #10706 - merelymyself:master, r=epage
authorbors <bors@rust-lang.org>
Sun, 29 May 2022 02:13:39 +0000 (02:13 +0000)
committerbors <bors@rust-lang.org>
Sun, 29 May 2022 02:13:39 +0000 (02:13 +0000)
commitca4edabb28fc96fdf2a1d56fe3851831ac166f8a
tree90e2a1534c140ca5c67a1347bb71c0ccf796e1ef
parente0e1df99f60667f7bcf6ef3c2963e3ae19b56e60
parent754a5bfbaa9b5c677e0d96ca7edc17051bf311e1
Auto merge of #10706 - merelymyself:master, r=epage

Guide new users to add use `super::*;` to `mod test`

### What does this PR try to resolve?

Currently, `cargo init --lib` produces examples for unit tests. However, new users will find that they are unable to use functions they defined above. This should resolve the confusion.

Fixes #10559

### How should we test and review this PR?

This PR does not create new features. Test this PR using the already-existing tests.

### Additional information

I didn't think this was a major change, so I did not open a RFC for it. Please let me know if I should have!