mod stream { enum stream { send(T, server::stream), } mod server { impl stream { fn recv() -> extern fn(+stream) -> stream::stream { // resolve really should report just one error here. // Change the test case when it changes. fn recv(+pipe: stream) -> stream::stream { //~ ERROR attempt to use a type argument out of scope //~^ ERROR use of undeclared type name //~^^ ERROR attempt to use a type argument out of scope //~^^^ ERROR use of undeclared type name option::unwrap(pipes::recv(pipe)) } recv } } type stream = pipes::RecvPacket>; } } fn main() {}