rust/src/test/rustdoc-ui/intra-doc/anchors.stderr

54 lines
1.7 KiB
Text
Raw Normal View History

error: `prim@usize#x` contains an anchor, but links to builtin types are already anchored
--> $DIR/anchors.rs:47:6
2019-11-23 18:45:55 +01:00
|
LL | /// [prim@usize#x]
| ^^^^^^^^^^--
| |
| invalid anchor
2019-11-23 18:45:55 +01:00
|
2020-01-22 23:57:38 +00:00
note: the lint level is defined here
--> $DIR/anchors.rs:1:9
2019-11-23 18:45:55 +01:00
|
LL | #![deny(rustdoc::broken_intra_doc_links)]
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
= note: this restriction may be lifted in a future release
= note: see https://github.com/rust-lang/rust/issues/83083 for more information
2019-11-23 18:45:55 +01:00
error: `Foo::f#hola` contains an anchor, but links to fields are already anchored
--> $DIR/anchors.rs:25:15
|
LL | /// Or maybe [Foo::f#hola].
| ^^^^^^-----
| |
| invalid anchor
error: `hello#people#!` contains multiple anchors
--> $DIR/anchors.rs:31:28
2019-11-23 18:45:55 +01:00
|
LL | /// Another anchor error: [hello#people#!].
| ^^^^^^^^^^^^--
| |
| invalid anchor
2019-11-23 18:45:55 +01:00
error: `Enum::A#whatever` contains an anchor, but links to variants are already anchored
--> $DIR/anchors.rs:37:28
2019-11-23 18:45:55 +01:00
|
LL | /// Damn enum's variants: [Enum::A#whatever].
| ^^^^^^^---------
| |
| invalid anchor
2019-11-23 18:45:55 +01:00
error: `u32#hello` contains an anchor, but links to builtin types are already anchored
--> $DIR/anchors.rs:43:6
2019-11-23 18:45:55 +01:00
|
LL | /// [u32#hello]
| ^^^------
| |
| invalid anchor
|
= note: this restriction may be lifted in a future release
= note: see https://github.com/rust-lang/rust/issues/83083 for more information
2019-11-23 18:45:55 +01:00
error: aborting due to 5 previous errors
2019-11-23 18:45:55 +01:00