Sign in
android
/
toolchain
/
rustc
/
ff3f07ae99a30006dd85b9d73084edd9355c9db6
/
.
/
src
/
test
/
ui
/
traits
/
auxiliary
/
trait_bounds_on_structs_and_enums_xc.rs
blob: 7e9592eee2c0d0c164cf91411129c743c8ec2665 [
file
] [
log
] [
blame
]
pub
trait
Trait
{
fn
dummy
(&
self
)
{
}
}
pub
struct
Foo
<
T
:
Trait
>
{
pub
x
:
T
,
}
pub
enum
Bar
<
T
:
Trait
>
{
ABar
(
isize
),
BBar
(
T
),
CBar
(
usize
),
}