]>
Commit | Line | Data |
---|---|---|
e74abb32 XL |
1 | pub fn foo(num: i32) -> i32 { |
2 | let foo: i32::from_be(num); | |
3 | //~^ ERROR expected type, found local variable `num` | |
60c5eb7d | 4 | //~| ERROR type arguments are not allowed for this type |
e74abb32 XL |
5 | //~| ERROR parenthesized type parameters may only be used with a `Fn` trait |
6 | //~| ERROR ambiguous associated type | |
e74abb32 XL |
7 | foo |
8 | } | |
9 | ||
10 | fn main() { | |
11 | let _ = foo(42); | |
12 | } |