We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4571172 commit 2f853ddCopy full SHA for 2f853dd
src/test/run-pass/ret-none.rs
@@ -0,0 +1,6 @@
1
+tag option[T] { none; some(T); }
2
+
3
+fn f[T]() -> option[T] { ret none; }
4
5
+fn main() { f[int](); }
6
0 commit comments