We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0131110 commit 6eb0bf2Copy full SHA for 6eb0bf2
tests/source/existential_type.rs
@@ -0,0 +1,11 @@
1
+// Existential type.
2
+
3
+ #![feature(existential_type)]
4
5
+pub existential type Adder<F, T>
6
+where
7
+ T: Clone,
8
+ F: Copy
9
+ : Fn(T) -> T;
10
11
+pub existential type Adderrr<T>: Fn( T ) -> T;
tests/target/existential_type.rs
+#![feature(existential_type)]
+ F: Copy,
+: Fn(T) -> T;
+pub existential type Adderrr<T>: Fn(T) -> T;
0 commit comments