Skip to content

Commit f59cf12

Browse files
committed
---
yaml --- r: 40278 b: refs/heads/dist-snap c: caf6803 h: refs/heads/master v: v3
1 parent 7cf9a17 commit f59cf12

File tree

6 files changed

+8
-13
lines changed

6 files changed

+8
-13
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105
77
refs/heads/ndm: f3868061cd7988080c30d6d5bf352a5a5fe2460b
88
refs/heads/try2: a810c03263670238bccd64cabb12a23a46e3a278
99
refs/heads/incoming: e90142e536c150df0d9b4b2f11352152177509b5
10-
refs/heads/dist-snap: ad025102582b8c5b7d78b96683cf9e9e94dc5272
10+
refs/heads/dist-snap: caf68038dd5bc129a3a9b6972a64c0752b73a004
1111
refs/tags/release-0.2: c870d2dffb391e14efb05aa27898f1f6333a9596
1212
refs/tags/release-0.3: b5f0d0f648d9a6153664837026ba1be43d3e2503
1313
refs/heads/try3: 9387340aab40a73e8424c48fd42f0c521a4875c0
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
enum hello = int;
22

33
fn main() {
4-
let hello = 0; //~ERROR declaration of `hello` shadows an enum that's in
5-
}
4+
let hello = 0; //~ERROR declaration of `hello` shadows
5+
}
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
1-
// error-pattern: type cat cannot be dereferenced
1+
// error-pattern: can only dereference structs
22
struct cat {
33
x: ()
44
}
55

66
fn main() {
77
let kitty : cat = cat { x: () };
88
log (error, *kitty);
9-
}
9+
}
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
1-
// error-pattern: type cat cannot be dereferenced
1+
// error-pattern: can only dereference structs
22
struct cat {
33
foo: ()
44
}
55

66
fn main() {
77
let nyan = cat { foo: () };
88
log (error, *nyan);
9-
}
9+
}

branches/dist-snap/src/test/compile-fail/issue-2509-a.rs

Lines changed: 0 additions & 5 deletions
This file was deleted.
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
enum foo = uint;
22

33
fn main() {
4-
let (foo, _) = (2, 3); //~ ERROR declaration of `foo` shadows an enum that's in scope
4+
let (foo, _) = (2, 3); //~ ERROR declaration of `foo` shadows
55
}

0 commit comments

Comments
 (0)