2019-10-18 10:33:25 -07:00
|
|
|
error[E0573]: expected type, found local variable `num`
|
|
|
|
|
--> $DIR/let-binding-init-expr-as-ty.rs:2:27
|
|
|
|
|
|
|
|
|
|
|
LL | let foo: i32::from_be(num);
|
2019-10-19 10:13:56 -07:00
|
|
|
| -- ^^^ not a type
|
|
|
|
|
| |
|
|
|
|
|
| help: use `=` if you meant to assign
|
2019-10-18 10:33:25 -07:00
|
|
|
|
2024-08-26 14:51:26 -04:00
|
|
|
error: argument types not allowed with return type notation
|
|
|
|
|
--> $DIR/let-binding-init-expr-as-ty.rs:2:26
|
2019-10-18 10:33:25 -07:00
|
|
|
|
|
|
|
|
|
LL | let foo: i32::from_be(num);
|
2025-02-28 20:05:43 +00:00
|
|
|
| ^^^^^
|
2022-06-15 02:50:34 +01:00
|
|
|
|
|
2024-08-26 14:51:26 -04:00
|
|
|
= note: see issue #109417 <https://github.com/rust-lang/rust/issues/109417> for more information
|
|
|
|
|
= help: add `#![feature(return_type_notation)]` to the crate attributes to enable
|
|
|
|
|
= note: this compiler was built on YYYY-MM-DD; consider upgrading it if it is out of date
|
2025-02-28 20:05:43 +00:00
|
|
|
help: remove the input types
|
|
|
|
|
|
|
|
|
|
|
LL - let foo: i32::from_be(num);
|
|
|
|
|
LL + let foo: i32::from_be(..);
|
|
|
|
|
|
|
2019-08-03 19:58:26 +02:00
|
|
|
|
2024-08-26 15:03:30 -04:00
|
|
|
error: return type notation not allowed in this position yet
|
2019-10-18 10:33:25 -07:00
|
|
|
--> $DIR/let-binding-init-expr-as-ty.rs:2:14
|
|
|
|
|
|
|
|
|
|
|
LL | let foo: i32::from_be(num);
|
2023-01-08 06:54:52 +00:00
|
|
|
| ^^^^^^^^^^^^^^^^^
|
2019-10-18 10:33:25 -07:00
|
|
|
|
2019-12-08 17:22:35 +00:00
|
|
|
error: aborting due to 3 previous errors
|
2019-10-18 10:33:25 -07:00
|
|
|
|
2024-08-26 15:03:30 -04:00
|
|
|
For more information about this error, try `rustc --explain E0573`.
|