From b805f2c4dce9d9fb25ea48d6290d60f8546df64f Mon Sep 17 00:00:00 2001 From: Jake Degen Date: Thu, 18 Jun 2020 08:48:37 -0400 Subject: Added tooltip for should_panic code examples. Previously, compile_fail and ignore code examples displayed a tooltip indicating this in the documentation. This tooltip has now also been added to should_panic examples. --- src/test/rustdoc/codeblock-title.rs | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/test/rustdoc') diff --git a/src/test/rustdoc/codeblock-title.rs b/src/test/rustdoc/codeblock-title.rs index 2f77929c74e..2157a4d5389 100644 --- a/src/test/rustdoc/codeblock-title.rs +++ b/src/test/rustdoc/codeblock-title.rs @@ -4,6 +4,7 @@ // @has foo/fn.bar.html '//*[@class="tooltip compile_fail"]/span' "This example deliberately fails to compile" // @has foo/fn.bar.html '//*[@class="tooltip ignore"]/span' "This example is not tested" +// @has foo/fn.bar.html '//*[@class="tooltip should_panic"]/span' "This example panics" /// foo /// @@ -15,6 +16,10 @@ /// goo(); /// ``` /// +/// ```should_panic +/// hoo(); +/// ``` +/// /// ``` /// let x = 0; /// ``` -- cgit 1.4.1-3-g733a5