Sign in
android
/
toolchain
/
rustc
/
ff3f07ae99a30006dd85b9d73084edd9355c9db6
/
.
/
src
/
test
/
ui
/
wf
/
wf-in-fn-arg.rs
blob: 18df723360bf8c6430a8b505739c7712538726fd [
file
] [
log
] [
blame
]
// Check that we enforce WF conditions also for argument types in fn items.
#![
feature
(
rustc_attrs
)]
#![
allow
(
dead_code
)]
struct
MustBeCopy
<
T
:
Copy
>
{
t
:
T
}
fn
bar
<
T
>(
_
:
&
MustBeCopy
<
T
>)
//~ ERROR E0277
{
}
fn
main
()
{
}