]>
git.proxmox.com Git - rustc.git/blob - src/test/ui/unboxed-closures/unboxed-closure-sugar-used-on-struct-1.rs
1 // Test that parentheses form doesn't work with struct types appearing in local variables.
8 let x
: Box
<Bar()> = panic
!();
9 //~^ ERROR parenthesized type parameters may only be used with a `Fn` trait
10 //~| ERROR missing generics for struct `Bar`