Sign in
fuchsia
/
third_party
/
rust
/
89573b3c8b629507130b1ec8beeaf550fdc0e046
/
.
/
src
/
test
/
run-pass
/
borrow-by-val-method-receiver.rs
blob: 5907f8238af94240be602e4dd704d09362b0f72c [
file
] [
log
] [
blame
]
trait
Foo
{
fn
foo
(
self
);
}
impl
<
'a> Foo for &'
a
[
isize
]
{
fn
foo
(
self
)
{}
}
pub
fn
main
()
{
let
items
=
vec
![
3
,
5
,
1
,
2
,
4
];
items
.
foo
();
}