Sign in
android
/
toolchain
/
rustc
/
d720b3f2ba07cb42ff7b311589c99daefe3aaa22
/
.
/
tests
/
ui
/
wf
/
wf-in-fn-ret.rs
blob: 4c9535184ff9a55dce9f37b7d09070f8adf9e649 [
file
] [
log
] [
blame
]
// Check that we enforce WF conditions also for return 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
()
{
}