Content deleted Content added
MfortyoneA (talk | contribs) moved the citation for the coupling hazard; it's what the earlier text alludes to. |
q and g are very difficult to visually parse (e.g. q.g), so switch to a,b,c |
||
Line 43:
trait Foo {
fn
fn
}
trait Bar {
fn
}
Line 54:
impl Foo for Qux {
fn
fn
}
impl Bar for Qux {
fn g(&self) { println!("Qux’s implementation of Bar::
}
fn main() {
let
// These two are equivalent:
Foo::
// This would not work because .
//
// But it's possible to disambiguate using UFCS
Foo::
Bar::
}
</source>
|