Sign in
fuchsia
/
third_party
/
rust
/
7de9402b77ded0d8ec9e1c554521b2121449ef2b
/
.
/
src
/
test
/
ui
/
borrow-by-val-method-receiver.rs
blob: 465bef1614d43f63da85d775c653043f373c8b32 [
file
] [
log
] [
blame
]
// run-pass
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
();
}