Files
rust/tests/rustdoc-ui/intra-doc/prim-conflict.stderr
Esteban Küber f0845adb0c Show diff suggestion format on verbose replacement
```
error[E0610]: `{integer}` is a primitive type and therefore doesn't have fields
  --> $DIR/attempted-access-non-fatal.rs:7:15
   |
LL |     let _ = 2.l;
   |               ^
   |
help: if intended to be a floating point literal, consider adding a `0` after the period and a `f64` suffix
   |
LL -     let _ = 2.l;
LL +     let _ = 2.0f64;
   |
```
2025-02-10 20:21:39 +00:00

64 lines
1.5 KiB
Plaintext

error: `char` is both a module and a primitive type
--> $DIR/prim-conflict.rs:4:6
|
LL | /// [char]
| ^^^^ ambiguous link
|
note: the lint level is defined here
--> $DIR/prim-conflict.rs:1:9
|
LL | #![deny(rustdoc::broken_intra_doc_links)]
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
help: to link to the module, prefix with `mod@`
|
LL | /// [mod@char]
| ++++
help: to link to the primitive type, prefix with `prim@`
|
LL | /// [prim@char]
| +++++
error: `char` is both a module and a primitive type
--> $DIR/prim-conflict.rs:10:6
|
LL | /// [type@char]
| ^^^^^^^^^ ambiguous link
|
help: to link to the module, prefix with `mod@`
|
LL - /// [type@char]
LL + /// [mod@char]
|
help: to link to the primitive type, prefix with `prim@`
|
LL - /// [type@char]
LL + /// [prim@char]
|
error: incompatible link kind for `char`
--> $DIR/prim-conflict.rs:19:6
|
LL | /// [struct@char]
| ^^^^^^^^^^^ this link resolved to a module, which is not a struct
|
help: to link to the module, prefix with `mod@`
|
LL - /// [struct@char]
LL + /// [mod@char]
|
error: incompatible link kind for `char`
--> $DIR/prim-conflict.rs:26:10
|
LL | //! [struct@char]
| ^^^^^^^^^^^ this link resolved to a primitive type, which is not a struct
|
help: to link to the primitive type, prefix with `prim@`
|
LL - //! [struct@char]
LL + //! [prim@char]
|
error: aborting due to 4 previous errors