This has been fixed by a mystery hacker.
This commit is contained in:
parent
1ff426b89f
commit
394b8fcd1c
1 changed files with 12 additions and 0 deletions
12
src/test/run-pass/issue-333.rs
Normal file
12
src/test/run-pass/issue-333.rs
Normal file
|
@ -0,0 +1,12 @@
|
|||
fn quux[T](&T x) -> T{
|
||||
auto f = id[T];
|
||||
ret f(x);
|
||||
}
|
||||
|
||||
fn id[T](&T x) -> T {
|
||||
ret x;
|
||||
}
|
||||
|
||||
fn main() {
|
||||
assert quux(10) == 10;
|
||||
}
|
Loading…
Reference in a new issue