mirror of
https://github.com/rust-lang/rust.git
synced 2026-05-29 12:36:35 +03:00
Another test for typestate and expr_fn
This commit is contained in:
@@ -0,0 +1,10 @@
|
||||
// error-pattern:Unsatisfied precondition
|
||||
// xfail-stage0
|
||||
|
||||
fn main() {
|
||||
auto j = (fn () -> int {
|
||||
let int i;
|
||||
ret i;
|
||||
})();
|
||||
log_err j;
|
||||
}
|
||||
Reference in New Issue
Block a user