Sign in
fuchsia
/
third_party
/
rust
/
11a0b968c287c81680387ffcf112328d52d7e815
/
.
/
src
/
test
/
ui
/
traits
/
trait-bounds-on-structs-and-enums-locals.rs
blob: 21c0ce80f8a8d5fca47da519a3e9ea30be7cec16 [
file
] [
log
] [
blame
]
trait
Trait
{
fn
dummy
(&
self
)
{
}
}
struct
Foo
<
T
:
Trait
>
{
x
:
T
,
}
fn
main
()
{
let
foo
=
Foo
{
//~^ ERROR E0277
x
:
3
};
let
baz
:
Foo
<
usize
>
=
loop
{
};
//~^ ERROR E0277
}