1error: `char` is both a module and a builtin type 2 --> $DIR/prim-conflict.rs:4:6 3 | 4LL | /// [char] 5 | ^^^^ ambiguous link 6 | 7note: the lint level is defined here 8 --> $DIR/prim-conflict.rs:1:9 9 | 10LL | #![deny(rustdoc::broken_intra_doc_links)] 11 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12help: to link to the module, prefix with `mod@` 13 | 14LL | /// [mod@char] 15 | ++++ 16help: to link to the builtin type, prefix with `prim@` 17 | 18LL | /// [prim@char] 19 | +++++ 20 21error: `char` is both a module and a builtin type 22 --> $DIR/prim-conflict.rs:10:6 23 | 24LL | /// [type@char] 25 | ^^^^^^^^^ ambiguous link 26 | 27help: to link to the module, prefix with `mod@` 28 | 29LL | /// [mod@char] 30 | ~~~~ 31help: to link to the builtin type, prefix with `prim@` 32 | 33LL | /// [prim@char] 34 | ~~~~~ 35 36error: incompatible link kind for `char` 37 --> $DIR/prim-conflict.rs:19:6 38 | 39LL | /// [struct@char] 40 | ^^^^^^^^^^^ this link resolved to a module, which is not a struct 41 | 42help: to link to the module, prefix with `mod@` 43 | 44LL | /// [mod@char] 45 | ~~~~ 46 47error: incompatible link kind for `char` 48 --> $DIR/prim-conflict.rs:26:10 49 | 50LL | //! [struct@char] 51 | ^^^^^^^^^^^ this link resolved to a builtin type, which is not a struct 52 | 53help: to link to the builtin type, prefix with `prim@` 54 | 55LL | //! [prim@char] 56 | ~~~~~ 57 58error: aborting due to 4 previous errors 59 60