Sign in
fuchsia
/
third_party
/
rust
/
08351004125c4d49aa757f2c3ec2340f7469ea91
/
.
/
src
/
test
/
ui
/
traits
/
trait-bounds-on-structs-and-enums-in-impls.rs
blob: d379499521c7cbc06374984f93550700a657429e [
file
] [
log
] [
blame
]
trait
Trait
{}
struct
Foo
<
T
:
Trait
>
{
x
:
T
,
}
enum
Bar
<
T
:
Trait
>
{
ABar
(
isize
),
BBar
(
T
),
CBar
(
usize
),
}
trait
PolyTrait
<
T
>
{
fn
whatever
(&
self
,
t
:
T
)
{}
}
struct
Struct
;
impl
PolyTrait
<
Foo
<
u16
>>
for
Struct
{
//~^ ERROR E0277
}
fn
main
()
{
}