Sign in
fuchsia
/
third_party
/
rust
/
2c4bf249bd47f232de3c1e78ffe69b40c29bfcca
/
.
/
tests
/
ui
/
traits
/
issue-56202.rs
blob: 7c12e4a493669c1162cec74dcc6048b10420efed [
file
] [
log
] [
blame
]
//@ build-pass
trait
FooTrait
{}
trait
BarTrait
{
fn
foo
<
T
:
FooTrait
>(
_
:
T
)
->
Self
;
}
struct
FooStruct
(
u32
);
impl
BarTrait
for
FooStruct
{
fn
foo
<
T
:
FooTrait
>(
_
:
T
)
->
Self
{
Self
(
u32
::
default
())
}
}
fn
main
()
{}