Sign in
android
/
toolchain
/
rustc
/
refs/heads/main
/
.
/
tests
/
ui
/
borrow-by-val-method-receiver.rs
blob: aee1108d96d868991c23f7242104e41613c774fe [
file
] [
log
] [
blame
] [
edit
]
//@ 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
();
}