]>
git.proxmox.com Git - rustc.git/blob - src/test/run-make/coverage/lib/doctest_crate.rs
1 /// A function run only from within doctests
2 pub fn fn_run_in_doctests(conditional
: usize) {
4 1 => assert_eq
!(1, 1), // this is run,
5 2 => assert_eq
!(1, 1), // this,
6 3 => assert_eq
!(1, 1), // and this too
7 _
=> assert_eq
!(1, 2), // however this is not