rust/tests/rustdoc/double-hyphen-to-dash.rs

10 lines
266 B
Rust
Raw Permalink Blame History

This file contains ambiguous Unicode characters!

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

// This test ensures that `--` (double-hyphen) is correctly converted into `` (dash).
#![crate_name = "foo"]
// @has 'foo/index.html' '//*[@class="desc docblock-short"]' ''
// @has 'foo/struct.Bar.html' '//*[@class="docblock"]' ''
/// --
pub struct Bar;