|
| 1 | +error: unresolved link to `Foo::X` |
| 2 | + --> $DIR/value-ctor.rs:5:6 |
| 3 | + | |
| 4 | +LL | /// [value@Foo::X] |
| 5 | + | ^^^^^^^^^^^^ this link resolves to the variant `X`, which is not in the value namespace |
| 6 | + | |
| 7 | +note: the lint level is defined here |
| 8 | + --> $DIR/value-ctor.rs:2:9 |
| 9 | + | |
| 10 | +LL | #![deny(rustdoc::broken_intra_doc_links)] |
| 11 | + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ |
| 12 | +help: to link to the variant, prefix with `variant@` |
| 13 | + | |
| 14 | +LL | /// [variant@Foo::X] |
| 15 | + | ~~~~~~~~ |
| 16 | + |
| 17 | +error: unresolved link to `MyStruct` |
| 18 | + --> $DIR/value-ctor.rs:10:11 |
| 19 | + | |
| 20 | +LL | /// [tst][value@MyStruct] |
| 21 | + | ^^^^^^^^^^^^^^ this link resolves to the struct `MyStruct`, which is not in the value namespace |
| 22 | + | |
| 23 | +help: to link to the struct, prefix with `struct@` |
| 24 | + | |
| 25 | +LL | /// [tst][struct@MyStruct] |
| 26 | + | ~~~~~~~ |
| 27 | + |
| 28 | +error: unresolved link to `Internals` |
| 29 | + --> $DIR/value-ctor.rs:20:15 |
| 30 | + | |
| 31 | +LL | /// while [b][value@Internals] fails. |
| 32 | + | ^^^^^^^^^^^^^^^ this link resolves to the struct `Internals`, which is not in the value namespace |
| 33 | + | |
| 34 | +help: to link to the struct, prefix with `struct@` |
| 35 | + | |
| 36 | +LL | /// while [b][struct@Internals] fails. |
| 37 | + | ~~~~~~~ |
| 38 | + |
| 39 | +error: incompatible link kind for `Internals` |
| 40 | + --> $DIR/value-ctor.rs:22:15 |
| 41 | + | |
| 42 | +LL | /// while [d][variant@Internals] fails. |
| 43 | + | ^^^^^^^^^^^^^^^^^ this link resolved to a struct, which is not a variant |
| 44 | + | |
| 45 | +help: to link to the struct, prefix with `struct@` |
| 46 | + | |
| 47 | +LL | /// while [d][struct@Internals] fails. |
| 48 | + | ~~~~~~~ |
| 49 | + |
| 50 | +error: unresolved link to `Internals2` |
| 51 | + --> $DIR/value-ctor.rs:34:15 |
| 52 | + | |
| 53 | +LL | /// while [b][value@Internals2] fails. |
| 54 | + | ^^^^^^^^^^^^^^^^ this link resolves to the enum `Internals2`, which is not in the value namespace |
| 55 | + | |
| 56 | +help: to link to the enum, prefix with `enum@` |
| 57 | + | |
| 58 | +LL | /// while [b][enum@Internals2] fails. |
| 59 | + | ~~~~~ |
| 60 | + |
| 61 | +error: aborting due to 5 previous errors |
| 62 | + |
0 commit comments