Sign in
android
/
toolchain
/
rustc
/
ff3f07ae99a30006dd85b9d73084edd9355c9db6
/
.
/
src
/
test
/
ui
/
wf
/
wf-in-fn-type-arg.rs
blob: 2917a8aa98c548770d1cdbd21a69045e09a9ca5f [
file
] [
log
] [
blame
]
// Check that we enforce WF conditions also for types in fns.
struct
MustBeCopy
<
T
:
Copy
>
{
t
:
T
}
struct
Bar
<
T
>
{
// needs T: Copy
x
:
fn
(
MustBeCopy
<
T
>)
//~ ERROR E0277
}
fn
main
()
{
}