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 df489aa commit fff8498Copy full SHA for fff8498
[refs]
@@ -2,5 +2,5 @@
2
refs/heads/master: 61b1875c16de39c166b0f4d54bba19f9c6777d1a
3
refs/heads/snap-stage1: e33de59e47c5076a89eadeb38f4934f58a3618a6
4
refs/heads/snap-stage3: 4a81779abd786ff22d71434c6d9a5917ea4cdfff
5
-refs/heads/try: 8a7fd4a04fa9683b149eb1db973d4e2c0f3d05cc
+refs/heads/try: 8c8db42fc56ee2946893248610c2af70e62e35ae
6
refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105
branches/try/src/test/run-fail/issue-1763.rs
@@ -0,0 +1,14 @@
1
+// Issue #1763 - infer types correctly
+// error-pattern:explicit failure
+
+type actor<T> = {
+ unused: bool
+};
7
8
+fn act2<T>() -> actor<T> {
9
+ fail;
10
+}
11
12
+fn main() {
13
+ let a: actor<int> = act2();
14
0 commit comments