2019-07-26 16:54:25 -05:00
|
|
|
// run-pass
|
|
|
|
|
2012-09-03 17:56:57 -05:00
|
|
|
trait Foo {
|
|
|
|
fn foo(self);
|
|
|
|
}
|
|
|
|
|
2015-03-25 19:06:52 -05:00
|
|
|
impl<'a> Foo for &'a [isize] {
|
2012-09-03 17:56:57 -05:00
|
|
|
fn foo(self) {}
|
|
|
|
}
|
|
|
|
|
2013-02-01 21:43:17 -06:00
|
|
|
pub fn main() {
|
2016-10-29 16:54:04 -05:00
|
|
|
let items = vec![ 3, 5, 1, 2, 4 ];
|
2015-01-26 20:21:15 -06:00
|
|
|
items.foo();
|
2012-09-03 17:56:57 -05:00
|
|
|
}
|