]> git.lizzy.rs Git - rust.git/commit
Modify doctest's auto-`fn main()` to allow `Result`s
authorAndre Bogus <bogusandre@gmail.com>
Mon, 3 Dec 2018 17:16:20 +0000 (18:16 +0100)
committerAndre Bogus <bogusandre@gmail.com>
Sun, 17 Feb 2019 15:42:49 +0000 (16:42 +0100)
commitdad211ef9fdcef5328813a1907d323303f09fc6c
treeccb9785522c11eb483b9bf6c5addeacdb1ec8c31
parent007115746c6d0234742719dd67efba054abe97ce
Modify doctest's auto-`fn main()` to allow `Result`s

This lets the default `fn main()` unwrap any `Result`s, which
allows the use of `?` in most tests without adding it manually.
src/doc/rustdoc/src/documentation-tests.md
src/librustdoc/test.rs
src/test/rustdoc/process-termination.rs [new file with mode: 0644]