2022-07-10 22:58:54 -05:00
|
|
|
// compile-flags:--test --test-args=--test-threads=1
|
2023-04-29 04:08:33 -05:00
|
|
|
// normalize-stdout-test: "tests/rustdoc-ui/doctest" -> "$$DIR"
|
2022-07-10 22:58:54 -05:00
|
|
|
// normalize-stdout-test "finished in \d+\.\d+s" -> "finished in $$TIME"
|
|
|
|
// check-pass
|
|
|
|
|
|
|
|
/// ```
|
|
|
|
/// #![deprecated(since = "5.2", note = "foo was rarely used. \
|
|
|
|
/// Users should instead use bar")]
|
|
|
|
/// ```
|
|
|
|
pub fn f() {}
|