summaryrefslogtreecommitdiffstats
path: root/tests/ui/suggestions/let-binding-init-expr-as-ty.rs
blob: 06ee421fc32794051dfdc529fac56201ec1d7683 (plain)
1
2
3
4
5
6
7
8
9
10
11
pub fn foo(num: i32) -> i32 {
    let foo: i32::from_be(num);
    //~^ ERROR expected type, found local variable `num`
    //~| ERROR parenthesized type parameters may only be used with a `Fn` trait
    //~| ERROR ambiguous associated type
    foo
}

fn main() {
    let _ = foo(42);
}