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.
This commit is contained in:
parent
e55d3f9c52
commit
b805f2c4dc
5 changed files with 46 additions and 1 deletions
|
|
@ -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;
|
||||
/// ```
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue