Sign in
rust
/
rust-lang
/
rust
/
refs/heads/perf-tmp
/
.
/
tests
/
ui
/
where-clauses
/
ignore-err-clauses.rs
blob: 6f21e5ccbaadebdbce56d6463f480b3d7d1c02c8 [
file
] [
log
] [
blame
]
use
std
::
ops
::
Add
;
fn
dbl
<
T
>(
x
:
T
)
->
<
T
as
Add
>::
Output
where
T
:
Copy
+
Add
,
UUU
:
Copy
,
//~^ ERROR cannot find type `UUU` in this scope
{
x
+
x
//~^ ERROR use of moved value: `x`
}
fn
main
()
{
println
!(
"{}"
,
dbl
(
3
));
}