Sign in
fuchsia
/
third_party
/
rust
/
08351004125c4d49aa757f2c3ec2340f7469ea91
/
.
/
src
/
test
/
ui
/
binary-op-on-double-ref.rs
blob: 6490cc7fe5689929859f63a656794bb447e6f3c0 [
file
] [
log
] [
blame
]
fn
main
()
{
let
v
=
vec
![
1
,
2
,
3
,
4
,
5
,
6
,
7
,
8
,
9
];
let
vr
=
v
.
iter
().
filter
(|
x
|
{
x
%
2
==
0
//~^ ERROR binary operation `%` cannot be applied to type `&&{integer}`
});
println
!(
"{:?}"
,
vr
);
}