2015-11-22 18:07:53 -06:00
|
|
|
impl Foo for Bar { fn foo() { "hi" } }
|
|
|
|
|
|
|
|
pub impl Foo for Bar {
|
|
|
|
// Comment 1
|
|
|
|
fn foo() { "hi" }
|
|
|
|
// Comment 2
|
|
|
|
fn foo() { "hi" }
|
|
|
|
// Comment 3
|
|
|
|
}
|
|
|
|
|
|
|
|
pub unsafe impl<'a, 'b, X, Y: Foo<Bar>> !Foo<'a, X> for Bar<'b, Y> where X: Foo<'a, Z> {
|
|
|
|
fn foo() { "hi" }
|
|
|
|
}
|
|
|
|
|
|
|
|
impl<'a, 'b, X, Y: Foo<Bar>> Foo<'a, X> for Bar<'b, Y> where X: Fooooooooooooooooooooooooooooo<'a, Z>
|
|
|
|
{
|
|
|
|
fn foo() { "hi" }
|
|
|
|
}
|
|
|
|
|
|
|
|
impl<'a, 'b, X, Y: Foo<Bar>> Foo<'a, X> for Bar<'b, Y> where X: Foooooooooooooooooooooooooooo<'a, Z>
|
|
|
|
{
|
|
|
|
fn foo() { "hi" }
|
|
|
|
}
|
2015-11-22 20:49:21 -06:00
|
|
|
|
|
|
|
impl Foo {
|
|
|
|
fn foo() {}
|
|
|
|
}
|
|
|
|
|
2015-11-23 22:54:44 -06:00
|
|
|
impl Boo {
|
|
|
|
|
|
|
|
// BOO
|
|
|
|
fn boo() {}
|
|
|
|
// FOO
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
2015-11-22 20:49:21 -06:00
|
|
|
mod a {
|
|
|
|
impl Foo {
|
|
|
|
// Hello!
|
|
|
|
fn foo() {}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
mod b {
|
|
|
|
mod a {
|
|
|
|
impl Foo {
|
|
|
|
fn foo() {}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2015-11-24 14:37:31 -06:00
|
|
|
|
|
|
|
impl Foo { add_fun!(); }
|
|
|
|
|
|
|
|
impl Blah {
|
|
|
|
fn boop() {}
|
|
|
|
add_fun!();
|
|
|
|
}
|
2015-12-25 12:07:51 -06:00
|
|
|
|
|
|
|
impl X { fn do_parse( mut self : X ) {} }
|
2015-12-27 07:25:37 -06:00
|
|
|
|
|
|
|
impl Y5000 {
|
|
|
|
fn bar(self: X< 'a , 'b >, y: Y) {}
|
|
|
|
}
|