diff options
| author | bors <bors@rust-lang.org> | 2020-01-05 17:31:32 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2020-01-05 17:31:32 +0000 |
| commit | bc1571cc3cfef07251f7df52b95525aa16797ca2 (patch) | |
| tree | 5f3fb5773cad1973ec174a5e1436076bd5fa87ee /src/test/rustdoc | |
| parent | b69f6e65c081f9a628ef5db83ba77e3861e60e60 (diff) | |
| parent | b9160fb56ced49c6087acb782c3260fab3936be9 (diff) | |
| download | rust-bc1571cc3cfef07251f7df52b95525aa16797ca2.tar.gz rust-bc1571cc3cfef07251f7df52b95525aa16797ca2.zip | |
Auto merge of #67903 - Dylan-DPC:rollup-k9djyrf, r=Dylan-DPC
Rollup of 5 pull requests Successful merges: - #67818 (rustdoc: Avoid panic when parsing codeblocks for playground links) - #67845 (Also remove const-hack for abs) - #67879 (Remove negative number check from float sqrt) - #67881 (Add backticks to various diagnostics) - #67882 (remove bespoke flock bindings) Failed merges: r? @ghost
Diffstat (limited to 'src/test/rustdoc')
| -rw-r--r-- | src/test/rustdoc/playground-syntax-error.rs | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/src/test/rustdoc/playground-syntax-error.rs b/src/test/rustdoc/playground-syntax-error.rs new file mode 100644 index 00000000000..8918ae874f8 --- /dev/null +++ b/src/test/rustdoc/playground-syntax-error.rs @@ -0,0 +1,21 @@ +#![crate_name = "foo"] +#![doc(html_playground_url = "https://play.rust-lang.org/")] + +/// bar docs +/// +/// ```edition2015 +/// use std::future::Future; +/// use std::pin::Pin; +/// fn foo_recursive(n: usize) -> Pin<Box<dyn Future<Output = ()>>> { +/// Box::pin(async move { +/// if n > 0 { +/// foo_recursive(n - 1).await; +/// } +/// }) +/// } +/// ``` +pub fn bar() {} + +// @has foo/fn.bar.html +// @has - '//a[@class="test-arrow"]' "Run" +// @has - '//*[@class="docblock"]' 'foo_recursive' |
