Sign in
fuchsia
/
third_party
/
rust
/
7de9402b77ded0d8ec9e1c554521b2121449ef2b
/
.
/
src
/
test
/
ui
/
suggestions
/
fn-ctor-passed-as-arg-where-it-should-have-been-called.rs
blob: 4303e5c54056977b86abc8fdc9d83b957a1ea43d [
file
] [
log
] [
blame
]
// edition:2018
trait
T
{
type
O
;
}
struct
S
;
impl
T
for
S
{
type
O
=
();
}
fn
foo
()
->
impl
T
<
O
=()>
{
S
}
fn
bar
(
f
:
impl
T
<
O
=()>)
{}
fn
main
()
{
bar
(
foo
);
//~ERROR E0277
let
closure
=
||
S
;
bar
(
closure
);
//~ERROR E0277
}