Sign in
fuchsia
/
third_party
/
rust
/
7de9402b77ded0d8ec9e1c554521b2121449ef2b
/
.
/
src
/
test
/
ui
/
traits
/
trait-bounds-on-structs-and-enums-static.rs
blob: df3f8b8a59961df3bae49b941a044b376fdde60a [
file
] [
log
] [
blame
]
trait
Trait
{
fn
dummy
(&
self
)
{
}
}
struct
Foo
<
T
:
Trait
>
{
x
:
T
,
}
static
X
:
Foo
<
usize
>
=
Foo
{
//~^ ERROR E0277
x
:
1
,
};
fn
main
()
{
}