diff options
| author | Marijn Haverbeke <marijnh@gmail.com> | 2012-01-30 11:52:34 +0100 |
|---|---|---|
| committer | Marijn Haverbeke <marijnh@gmail.com> | 2012-02-06 09:56:41 +0100 |
| commit | e0fa5cd2edbbb611ff3759a31357a70ca9582245 (patch) | |
| tree | 8c7e0bce2a1ea13e77de4aee89e4b975eb427eb9 /src/rustdoc | |
| parent | 5c42e3df9c811be18a220f33fbcb229702922104 (diff) | |
| download | rust-e0fa5cd2edbbb611ff3759a31357a70ca9582245.tar.gz rust-e0fa5cd2edbbb611ff3759a31357a70ca9582245.zip | |
Self types for ifaces
This allows a 'Name:' to appear in front of an iface declaration's
name, which will cause 'Name' to refer to the self type (with the same
number of type parameters as the iface has) in the method signatures
of the iface. For example:
iface F: functor<A> {
fn fmap<B>(f: fn(A) -> B) -> F<B>;
}
Issue #1718
Diffstat (limited to 'src/rustdoc')
| -rw-r--r-- | src/rustdoc/tystr_pass.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/rustdoc/tystr_pass.rs b/src/rustdoc/tystr_pass.rs index 58cbff8edb2..99137629db6 100644 --- a/src/rustdoc/tystr_pass.rs +++ b/src/rustdoc/tystr_pass.rs @@ -579,4 +579,4 @@ mod test { let doc = extract::from_srv(srv, ""); run(srv, doc) } -} \ No newline at end of file +} |
