]> git.lizzy.rs Git - rust.git/blob - src/test/ui/suggestions/let-binding-init-expr-as-ty.rs
Merge commit 'd0cf3481a84e3aa68c2f185c460e282af36ebc42' into clippyup
[rust.git] / src / test / ui / suggestions / let-binding-init-expr-as-ty.rs
1 pub fn foo(num: i32) -> i32 {
2     let foo: i32::from_be(num);
3     //~^ ERROR expected type, found local variable `num`
4     //~| ERROR parenthesized type parameters may only be used with a `Fn` trait
5     //~| ERROR ambiguous associated type
6     foo
7 }
8
9 fn main() {
10     let _ = foo(42);
11 }