We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d88497d commit 78088fbCopy full SHA for 78088fb
src/test/compile-fail/issue-2766-a.rs
@@ -0,0 +1,21 @@
1
+mod stream {
2
+ enum stream<T: send> { send(T, server::stream<T>), }
3
+ mod server {
4
+ impl recv<T: send> for stream<T> {
5
+ fn recv() -> extern fn(+stream<T>) -> stream::stream<T> {
6
+ // resolve really should report just one error here.
7
+ // Change the test case when it changes.
8
+ fn recv(+pipe: stream<T>) -> stream::stream<T> { //~ ERROR attempt to use a type argument out of scope
9
+ //~^ ERROR use of undeclared type name
10
+ //~^^ ERROR attempt to use a type argument out of scope
11
+ //~^^^ ERROR use of undeclared type name
12
+ option::unwrap(pipes::recv(pipe))
13
+ }
14
+ recv
15
16
17
+ type stream<T: send> = pipes::recv_packet<stream::stream<T>>;
18
19
+}
20
+
21
+fn main() {}
0 commit comments