Conversation

If you want to include ".." in Rust doctests while keeping them runnable, just do it like this: /// ```rust /// let x = 1; /// .. ///#; /// println!("{}", x); /// ``` You may need to #[allow(path_statements)] in the doctest.
2
5
Not at all, just a semicolon-delimited statement containing an unbounded range expression (which is a noop in this context). We just hide the semicolon to make it appear as a semi-ellipsis.
1
1