about summary refs log tree commit diff
path: root/tests/rustdoc-ui/intra-doc/bad-intra-doc.rs
blob: c24a848d8985c5bc32e1eb48800e6b0dbf82165c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#![no_std]
#![deny(rustdoc::broken_intra_doc_links)]

// regression test for https://github.com/rust-lang/rust/issues/54191

/// this is not a link to [`example.com`] //~ERROR unresolved link
///
/// this link [`has spaces in it`].
///
/// attempted link to method: [`Foo.bar()`] //~ERROR unresolved link
///
/// classic broken intra-doc link: [`Bar`] //~ERROR unresolved link
///
/// no backticks, so we let this one slide: [Foo.bar()]
pub struct Foo;