]> git.proxmox.com Git - rustc.git/blame - src/test/ui/suggestions/let-binding-init-expr-as-ty.rs
New upstream version 1.41.1+dfsg1
[rustc.git] / src / test / ui / suggestions / let-binding-init-expr-as-ty.rs
CommitLineData
e74abb32
XL
1pub 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
10fn main() {
11 let _ = foo(42);
12}