Skip to content

Commit 79cbdba

Browse files
committed
new tests for things we'll have to fix eventually
1 parent 5a3875e commit 79cbdba

File tree

2 files changed

+23
-0
lines changed

2 files changed

+23
-0
lines changed
Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
// xfail-test
2+
3+
fn ignore<T>(t: T) {}
4+
5+
fn nested(x: &x.int) {
6+
let y = 3;
7+
let mut ay = &y;
8+
9+
ignore(fn&(z: &z.int) {
10+
ay = x;
11+
ay = &y;
12+
ay = z; //! ERROR foo
13+
});
14+
15+
ignore(fn&(z: &z.int) -> &z.int {
16+
if false { ret x; } //! ERROR bar
17+
if false { ret &y; } //! ERROR bar
18+
if false { ret ay; } //! ERROR bar
19+
ret z;
20+
});
21+
}
22+
23+
fn main() {}

0 commit comments

Comments
 (0)