Allow ! as the return type of proc/closure literals

Fixes #13490.
This commit is contained in:
P1start 2014-08-29 17:16:23 +12:00
parent dee8423531
commit b220db03bd
2 changed files with 14 additions and 10 deletions

View file

@ -78,6 +78,10 @@ fn bar<'b>() {
let a = A;
a.foo::<<'a>||>();
// issue #13490
let _ = || -> ! loop {};
let _ = proc() -> ! loop {};
}
struct B<T>;