mirror of
https://github.com/rust-lang/rust.git
synced 2025-09-30 00:03:49 +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; | ```
51 lines
1.0 KiB
Plaintext
51 lines
1.0 KiB
Plaintext
error: return types are denoted using `->`
|
|
--> $DIR/fn-recover-return-sign.rs:3:8
|
|
|
|
|
LL | fn a() => usize { 0 }
|
|
| ^^
|
|
|
|
|
help: use `->` instead
|
|
|
|
|
LL - fn a() => usize { 0 }
|
|
LL + fn a() -> usize { 0 }
|
|
|
|
|
|
|
error: return types are denoted using `->`
|
|
--> $DIR/fn-recover-return-sign.rs:6:7
|
|
|
|
|
LL | fn b(): usize { 0 }
|
|
| ^
|
|
|
|
|
help: use `->` instead
|
|
|
|
|
LL - fn b(): usize { 0 }
|
|
LL + fn b() -> usize { 0 }
|
|
|
|
|
|
|
error: return types are denoted using `->`
|
|
--> $DIR/fn-recover-return-sign.rs:21:25
|
|
|
|
|
LL | let foo = |a: bool| => bool { a };
|
|
| ^^
|
|
|
|
|
help: use `->` instead
|
|
|
|
|
LL - let foo = |a: bool| => bool { a };
|
|
LL + let foo = |a: bool| -> bool { a };
|
|
|
|
|
|
|
error: return types are denoted using `->`
|
|
--> $DIR/fn-recover-return-sign.rs:25:24
|
|
|
|
|
LL | let bar = |a: bool|: bool { a };
|
|
| ^
|
|
|
|
|
help: use `->` instead
|
|
|
|
|
LL - let bar = |a: bool|: bool { a };
|
|
LL + let bar = |a: bool| -> bool { a };
|
|
|
|
|
|
|
error: aborting due to 4 previous errors
|
|
|