]> git.lizzy.rs Git - rust.git/blob - tests/run-make/coverage/lib/doctest_crate.rs
Rollup merge of #106715 - BoxyUwU:new_solver_triagebot, r=lcnr
[rust.git] / tests / run-make / coverage / lib / doctest_crate.rs
1 /// A function run only from within doctests
2 pub fn fn_run_in_doctests(conditional: usize) {
3     match conditional {
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
8     }
9 }