fork/rust
git clone https://git.julia.blue/fork/rust
5e1a799842b
1.41.0
1error[E0573]: expected type, found local variable `num` 2 --> $DIR/let-binding-init-expr-as-ty.rs:2:27 3 | 4LL | let foo: i32::from_be(num); 5 | -- ^^^ not a type 6 | | 7 | help: use `=` if you meant to assign 8 9error[E0214]: parenthesized type parameters may only be used with a `Fn` trait 10 --> $DIR/let-binding-init-expr-as-ty.rs:2:19 11 | 12LL | let foo: i32::from_be(num); 13 | ^^^^^^^^^^^^ 14 | | 15 | only `Fn` traits may use parentheses 16 | help: use angle brackets instead: `from_be<num>` 17 18error[E0109]: type arguments are not allowed for this type 19 --> $DIR/let-binding-init-expr-as-ty.rs:2:27 20 | 21LL | let foo: i32::from_be(num); 22 | ^^^ type argument not allowed 23 24error[E0223]: ambiguous associated type 25 --> $DIR/let-binding-init-expr-as-ty.rs:2:14 26 | 27LL | let foo: i32::from_be(num); 28 | ^^^^^^^^^^^^^^^^^ help: use fully-qualified syntax: `<i32 as Trait>::from_be` 29 30error: aborting due to 4 previous errors 31 32Some errors have detailed explanations: E0109, E0214, E0223, E0573. 33For more information about an error, try `rustc --explain E0109`.