/src/test/rustdoc/link-title-escape.rs

https://gitlab.com/jianglu/rust · Rust · 17 lines · 1 code · 3 blank · 13 comment · 0 complexity · a974ed4d9fc9bbc72dc371b7716d65f4 MD5 · raw file

  1. // Copyright 2018 The Rust Project Developers. See the COPYRIGHT
  2. // file at the top-level directory of this distribution and at
  3. // http://rust-lang.org/COPYRIGHT.
  4. //
  5. // Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
  6. // http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
  7. // <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
  8. // option. This file may not be copied, modified, or distributed
  9. // except according to those terms.
  10. #![crate_name = "foo"]
  11. //! hello [foo]
  12. //!
  13. //! [foo]: url 'title & <stuff> & "things"'
  14. // @has 'foo/index.html' 'title &amp; &lt;stuff&gt; &amp; &quot;things&quot;'