Sign in
fuchsia
/
third_party
/
rust
/
11a0b968c287c81680387ffcf112328d52d7e815
/
.
/
src
/
test
/
ui
/
suggestions
/
fn-ctor-passed-as-arg-where-it-should-have-been-called.rs
blob: acd149c5854e847fe574af8748a544ff50098526 [
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
}