Skip to content

Commit d3f889e

Browse files
committed
---
yaml --- r: 15781 b: refs/heads/try c: 5dbf881 h: refs/heads/master i: 15779: f219a1d v: v3
1 parent f84306a commit d3f889e

File tree

4 files changed

+20
-1
lines changed

4 files changed

+20
-1
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,5 @@
22
refs/heads/master: 61b1875c16de39c166b0f4d54bba19f9c6777d1a
33
refs/heads/snap-stage1: e33de59e47c5076a89eadeb38f4934f58a3618a6
44
refs/heads/snap-stage3: 4a81779abd786ff22d71434c6d9a5917ea4cdfff
5-
refs/heads/try: b4d1f1b2c11db370a2ef82646a4fdc091699e7b6
5+
refs/heads/try: 5dbf881e87baad3ab7ff33b56777e8411541e036
66
refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
const foo: int = 5;
2+
3+
fn main() {
4+
// assigning to various global constants
5+
none = some(3); //! ERROR assigning to static item
6+
foo = 6; //! ERROR assigning to static item
7+
}
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
enum foo = int;
2+
3+
fn main() {
4+
let x = foo(3);
5+
*x = 4; //! ERROR assigning to enum content
6+
}
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
resource r(_r: int) {}
2+
3+
fn main() {
4+
let x = r(3);
5+
*x = 4; //! ERROR assigning to resource content
6+
}

0 commit comments

Comments
 (0)