Sign in
fuchsia
/
third_party
/
rust
/
aedc3a51dfab0fa7205f1c0fd68a4e62dd6df712
/
.
/
src
/
test
/
ui
/
unboxed-closures
/
unboxed-closure-sugar-used-on-struct-1.rs
blob: 5387dcb218cb92e5cf90af8b21a968b75fb89676 [
file
] [
log
] [
blame
]
// Test that parentheses form doesn't work with struct types appearing in local variables.
struct
Bar
<
A
>
{
f
:
A
}
fn
bar
()
{
let
x
:
Box
<
Bar
()>
=
panic
!();
//~^ ERROR parenthesized parameters may only be used with a trait
}
fn
main
()
{
}