2020-08-20 23:14:41 -04:00
|
|
|
error: unresolved link to `path::to::nonexistent::module`
|
2020-08-29 09:59:57 -04:00
|
|
|
--> $DIR/intra-link-errors.rs:7:6
|
2020-08-20 11:41:18 -04:00
|
|
|
|
|
2020-08-20 23:14:41 -04:00
|
|
|
LL | /// [path::to::nonexistent::module]
|
2020-09-20 00:32:00 -04:00
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the module `intra_link_errors` contains no item named `path`
|
2020-08-20 11:41:18 -04:00
|
|
|
|
|
|
|
|
note: the lint level is defined here
|
|
|
|
--> $DIR/intra-link-errors.rs:1:9
|
|
|
|
|
|
|
|
|
LL | #![deny(broken_intra_doc_links)]
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
2020-08-31 23:28:38 -04:00
|
|
|
error: unresolved link to `path::to::nonexistent::macro`
|
2020-08-29 09:59:57 -04:00
|
|
|
--> $DIR/intra-link-errors.rs:11:6
|
2020-08-20 11:41:18 -04:00
|
|
|
|
|
2020-08-31 23:28:38 -04:00
|
|
|
LL | /// [path::to::nonexistent::macro!]
|
2020-09-20 00:32:00 -04:00
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the module `intra_link_errors` contains no item named `path`
|
2020-08-31 23:28:38 -04:00
|
|
|
|
|
|
|
error: unresolved link to `path::to::nonexistent::type`
|
|
|
|
--> $DIR/intra-link-errors.rs:15:6
|
|
|
|
|
|
|
|
|
LL | /// [type@path::to::nonexistent::type]
|
2020-09-20 00:32:00 -04:00
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the module `intra_link_errors` contains no item named `path`
|
2020-08-31 23:28:38 -04:00
|
|
|
|
|
|
|
error: unresolved link to `std::io::not::here`
|
|
|
|
--> $DIR/intra-link-errors.rs:19:6
|
|
|
|
|
|
2020-08-21 16:37:31 -04:00
|
|
|
LL | /// [std::io::not::here]
|
2020-09-20 00:32:00 -04:00
|
|
|
| ^^^^^^^^^^^^^^^^^^ the module `io` contains no item named `not`
|
2020-08-21 16:37:31 -04:00
|
|
|
|
2020-09-20 00:32:00 -04:00
|
|
|
error: unresolved link to `std::io::not::here`
|
2020-08-31 23:28:38 -04:00
|
|
|
--> $DIR/intra-link-errors.rs:23:6
|
2020-08-21 16:37:31 -04:00
|
|
|
|
|
2020-09-20 00:32:00 -04:00
|
|
|
LL | /// [type@std::io::not::here]
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^ the module `io` contains no item named `not`
|
|
|
|
|
|
|
|
error: unresolved link to `std::io::Error::x`
|
|
|
|
--> $DIR/intra-link-errors.rs:27:6
|
|
|
|
|
|
2020-08-21 16:37:31 -04:00
|
|
|
LL | /// [std::io::Error::x]
|
2020-09-11 14:00:40 -04:00
|
|
|
| ^^^^^^^^^^^^^^^^^ the struct `Error` has no field or associated item named `x`
|
2020-08-21 16:37:31 -04:00
|
|
|
|
|
|
|
error: unresolved link to `std::io::ErrorKind::x`
|
2020-09-20 00:32:00 -04:00
|
|
|
--> $DIR/intra-link-errors.rs:31:6
|
2020-08-21 16:37:31 -04:00
|
|
|
|
|
|
|
|
LL | /// [std::io::ErrorKind::x]
|
2020-09-11 14:00:40 -04:00
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^ the enum `ErrorKind` has no variant or associated item named `x`
|
2020-08-21 16:37:31 -04:00
|
|
|
|
|
|
|
error: unresolved link to `f::A`
|
2020-09-20 00:32:00 -04:00
|
|
|
--> $DIR/intra-link-errors.rs:35:6
|
2020-08-21 16:37:31 -04:00
|
|
|
|
|
2020-08-20 11:41:18 -04:00
|
|
|
LL | /// [f::A]
|
2020-09-11 14:00:40 -04:00
|
|
|
| ^^^^ `f` is a function, not a module or type, and cannot have associated items
|
2020-08-20 11:41:18 -04:00
|
|
|
|
2020-09-20 00:32:00 -04:00
|
|
|
error: unresolved link to `f::A`
|
|
|
|
--> $DIR/intra-link-errors.rs:39:6
|
|
|
|
|
|
|
|
|
LL | /// [f::A!]
|
|
|
|
| ^^^^^ `f` is a function, not a module or type, and cannot have associated items
|
|
|
|
|
2020-08-20 11:41:18 -04:00
|
|
|
error: unresolved link to `S::A`
|
2020-09-20 00:32:00 -04:00
|
|
|
--> $DIR/intra-link-errors.rs:43:6
|
2020-08-20 11:41:18 -04:00
|
|
|
|
|
|
|
|
LL | /// [S::A]
|
2020-09-11 14:00:40 -04:00
|
|
|
| ^^^^ the struct `S` has no field or associated item named `A`
|
2020-08-20 11:41:18 -04:00
|
|
|
|
|
|
|
error: unresolved link to `S::fmt`
|
2020-09-20 00:32:00 -04:00
|
|
|
--> $DIR/intra-link-errors.rs:47:6
|
2020-08-20 11:41:18 -04:00
|
|
|
|
|
|
|
|
LL | /// [S::fmt]
|
2020-09-11 14:00:40 -04:00
|
|
|
| ^^^^^^ the struct `S` has no field or associated item named `fmt`
|
2020-08-20 11:41:18 -04:00
|
|
|
|
|
|
|
error: unresolved link to `E::D`
|
2020-09-20 00:32:00 -04:00
|
|
|
--> $DIR/intra-link-errors.rs:51:6
|
2020-08-20 11:41:18 -04:00
|
|
|
|
|
|
|
|
LL | /// [E::D]
|
2020-09-11 14:00:40 -04:00
|
|
|
| ^^^^ the enum `E` has no variant or associated item named `D`
|
2020-08-20 11:41:18 -04:00
|
|
|
|
|
|
|
error: unresolved link to `u8::not_found`
|
2020-09-20 00:32:00 -04:00
|
|
|
--> $DIR/intra-link-errors.rs:55:6
|
2020-08-20 11:41:18 -04:00
|
|
|
|
|
|
|
|
LL | /// [u8::not_found]
|
2020-09-20 02:18:09 -04:00
|
|
|
| ^^^^^^^^^^^^^ the builtin type `u8` does not have an associated item named `not_found`
|
2020-08-20 11:41:18 -04:00
|
|
|
|
|
|
|
error: unresolved link to `S`
|
2020-09-20 00:32:00 -04:00
|
|
|
--> $DIR/intra-link-errors.rs:59:6
|
2020-08-20 11:41:18 -04:00
|
|
|
|
|
|
|
|
LL | /// [S!]
|
2020-09-11 14:00:40 -04:00
|
|
|
| ^^
|
|
|
|
| |
|
|
|
|
| this link resolves to the struct `S`, which is not in the macro namespace
|
|
|
|
| help: to link to the struct, prefix with `struct@`: `struct@S`
|
2020-08-20 21:15:32 -04:00
|
|
|
|
|
|
|
error: unresolved link to `T::g`
|
2020-09-20 00:32:00 -04:00
|
|
|
--> $DIR/intra-link-errors.rs:77:6
|
2020-08-20 21:15:32 -04:00
|
|
|
|
|
|
|
|
LL | /// [type@T::g]
|
2020-09-11 14:00:40 -04:00
|
|
|
| ^^^^^^^^^
|
|
|
|
| |
|
|
|
|
| this link resolves to the associated function `g`, which is not in the type namespace
|
|
|
|
| help: to link to the associated function, add parentheses: `T::g()`
|
2020-08-20 23:05:47 -04:00
|
|
|
|
|
|
|
error: unresolved link to `T::h`
|
2020-09-20 00:32:00 -04:00
|
|
|
--> $DIR/intra-link-errors.rs:82:6
|
2020-08-20 23:05:47 -04:00
|
|
|
|
|
|
|
|
LL | /// [T::h!]
|
2020-09-11 14:00:40 -04:00
|
|
|
| ^^^^^ the trait `T` has no macro named `h`
|
2020-08-20 21:15:32 -04:00
|
|
|
|
|
|
|
error: unresolved link to `S::h`
|
2020-09-20 00:32:00 -04:00
|
|
|
--> $DIR/intra-link-errors.rs:69:6
|
2020-08-20 21:15:32 -04:00
|
|
|
|
|
|
|
|
LL | /// [type@S::h]
|
2020-09-11 14:00:40 -04:00
|
|
|
| ^^^^^^^^^
|
|
|
|
| |
|
|
|
|
| this link resolves to the associated function `h`, which is not in the type namespace
|
|
|
|
| help: to link to the associated function, add parentheses: `S::h()`
|
2020-08-20 11:41:18 -04:00
|
|
|
|
2020-08-21 16:37:31 -04:00
|
|
|
error: unresolved link to `m`
|
2020-09-20 00:32:00 -04:00
|
|
|
--> $DIR/intra-link-errors.rs:89:6
|
2020-08-21 16:37:31 -04:00
|
|
|
|
|
|
|
|
LL | /// [m()]
|
2020-09-11 14:00:40 -04:00
|
|
|
| ^^^
|
|
|
|
| |
|
|
|
|
| this link resolves to the macro `m`, which is not in the value namespace
|
|
|
|
| help: to link to the macro, add an exclamation mark: `m!`
|
2020-08-21 16:37:31 -04:00
|
|
|
|
2020-09-20 00:32:00 -04:00
|
|
|
error: aborting due to 18 previous errors
|
2020-08-20 11:41:18 -04:00
|
|
|
|