Sign in
android
/
toolchain
/
rustc
/
refs/heads/main
/
.
/
tests
/
ui
/
issues
/
auxiliary
/
issue-11508.rs
blob: 16bfc65c2b576c283a6cd6bd8d8b1335c4a8649b [
file
] [
log
] [
blame
] [
edit
]
pub
struct
Closed01
<
F
>(
pub
F
);
pub
trait
Bar
{
fn
new
()
->
Self
;
}
impl
<
T
:
Bar
>
Bar
for
Closed01
<
T
>
{
fn
new
()
->
Closed01
<
T
>
{
Closed01
(
Bar
::
new
())
}
}
impl
Bar
for
f32
{
fn
new
()
->
f32
{
1.0
}
}
pub
fn
random
<
T
:
Bar
>()
->
T
{
Bar
::
new
()
}