Skip to content

Commit 9673bf2

Browse files
committed
---
yaml --- r: 33343 b: refs/heads/snap-stage3 c: c5b82a6 h: refs/heads/master i: 33341: 17bffb0 33339: 6707467 33335: 7e78445 33327: a981299 33311: 4ce96c0 33279: 1ee2f15 v: v3
1 parent 2b1a4d3 commit 9673bf2

File tree

4 files changed

+7
-9
lines changed

4 files changed

+7
-9
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
refs/heads/master: cd6f24f9d14ac90d167386a56e7a6ac1f0318195
33
refs/heads/snap-stage1: e33de59e47c5076a89eadeb38f4934f58a3618a6
4-
refs/heads/snap-stage3: 4f9e7babeb3fce422072f51959470ecec4dead53
4+
refs/heads/snap-stage3: c5b82a65e96cfe77e4983e78a34a7d5aa91329b4
55
refs/heads/try: d324a424d8f84b1eb049b12cf34182bda91b0024
66
refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105
77
refs/heads/ndm: f3868061cd7988080c30d6d5bf352a5a5fe2460b
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
fn f(x:int) {
2+
const child: int = x + 1; //~ ERROR attempt to use a non-constant value in a constant
3+
}
4+
5+
fn main() {}

branches/snap-stage3/src/test/run-pass/issue-3668.rs renamed to branches/snap-stage3/src/test/compile-fail/issue-3668.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,11 @@
1-
// xfail-test
21
struct P { child: Option<@mut P> }
32
trait PTrait {
43
fn getChildOption() -> Option<@P>;
54
}
65

76
impl P: PTrait {
87
fn getChildOption() -> Option<@P> {
9-
const childVal: @P = self.child.get();
8+
const childVal: @P = self.child.get(); //~ ERROR attempt to use a non-constant value in a constant
109
fail;
1110
}
1211
}

branches/snap-stage3/src/test/run-pass/issue-3688-2.rs

Lines changed: 0 additions & 6 deletions
This file was deleted.

0 commit comments

Comments
 (0)