Skip to content

Commit 8c8db42

Browse files
committed
test: Add test for #1763
1 parent 8a7fd4a commit 8c8db42

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

src/test/run-fail/issue-1763.rs

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
// Issue #1763 - infer types correctly
2+
// error-pattern:explicit failure
3+
4+
type actor<T> = {
5+
unused: bool
6+
};
7+
8+
fn act2<T>() -> actor<T> {
9+
fail;
10+
}
11+
12+
fn main() {
13+
let a: actor<int> = act2();
14+
}

0 commit comments

Comments
 (0)