mirror of
https://github.com/rust-lang/rust.git
synced 2025-02-09 13:33:43 +00:00
test: Add test for #1763
This commit is contained in:
parent
8a7fd4a04f
commit
8c8db42fc5
14
src/test/run-fail/issue-1763.rs
Normal file
14
src/test/run-fail/issue-1763.rs
Normal file
@ -0,0 +1,14 @@
|
||||
// Issue #1763 - infer types correctly
|
||||
// error-pattern:explicit failure
|
||||
|
||||
type actor<T> = {
|
||||
unused: bool
|
||||
};
|
||||
|
||||
fn act2<T>() -> actor<T> {
|
||||
fail;
|
||||
}
|
||||
|
||||
fn main() {
|
||||
let a: actor<int> = act2();
|
||||
}
|
Loading…
Reference in New Issue
Block a user