Sign in
fuchsia
/
third_party
/
rust
/
11a0b968c287c81680387ffcf112328d52d7e815
/
.
/
src
/
test
/
ui
/
wf
/
wf-in-fn-type-ret.rs
blob: ab8e697e3b9667a732196ebd732db6f55683222b [
file
] [
log
] [
blame
]
// Check that we enforce WF conditions also for types in fns.
struct
MustBeCopy
<
T
:
Copy
>
{
t
:
T
}
struct
Foo
<
T
>
{
// needs T: 'static
x
:
fn
()
->
MustBeCopy
<
T
>
//~ ERROR E0277
}
fn
main
()
{
}