about summary refs log tree commit diff
path: root/tests/ui/suggestions/let-binding-init-expr-as-ty.rs
blob: 71e5a0c728d6b6ef3bc56ec162ebf3a84a546664 (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 argument types not allowed with return type notation
    //~| ERROR return type notation not allowed in this position yet
    foo
}

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