Closed
Description
#![feature(associated_types)]
pub trait Transfer {
type Result;
fn transfer(&mut self) -> Result;
}
fn main(){}
Gives the error:
foo.rs:4:31: 4:37 error: wrong number of type arguments: expected 2, found 0
foo.rs:4 fn transfer(&mut self) -> Result;
^~~~~~
According to the RFC the Result
ought to refer to the associated type.