]> git.proxmox.com Git - rustc.git/blame - src/test/ui/borrow-by-val-method-receiver.rs
Update unsuspicious file list
[rustc.git] / src / test / ui / borrow-by-val-method-receiver.rs
CommitLineData
416331ca
XL
1// run-pass
2
223e47cc
LB
3trait Foo {
4 fn foo(self);
5}
6
c34b1796 7impl<'a> Foo for &'a [isize] {
223e47cc
LB
8 fn foo(self) {}
9}
10
11pub fn main() {
c30ab7b3 12 let items = vec![ 3, 5, 1, 2, 4 ];
85aaf69f 13 items.foo();
223e47cc 14}