mirror of
https://github.com/rust-lang/rust.git
synced 2025-11-17 06:06:37 +00:00
```
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;
|
```
20 lines
583 B
Plaintext
20 lines
583 B
Plaintext
error: incompatible link kind for `u8::MIN`
|
|
--> $DIR/incompatible-primitive-disambiguator.rs:2:6
|
|
|
|
|
LL | //! [static@u8::MIN]
|
|
| ^^^^^^^^^^^^^^ this link resolved to an associated constant, which is not a static
|
|
|
|
|
note: the lint level is defined here
|
|
--> $DIR/incompatible-primitive-disambiguator.rs:1:9
|
|
|
|
|
LL | #![deny(rustdoc::broken_intra_doc_links)]
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
help: to link to the associated constant, prefix with `const@`
|
|
|
|
|
LL - //! [static@u8::MIN]
|
|
LL + //! [const@u8::MIN]
|
|
|
|
|
|
|
error: aborting due to 1 previous error
|
|
|