We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5ddfbfb commit d051825Copy full SHA for d051825
[refs]
@@ -1,5 +1,5 @@
1
---
2
-refs/heads/master: 71dbbe145c42f3d9dc7842861738bfa64550dbbd
+refs/heads/master: 632d60691a8bd9fb85e3874016d4c1b24657de03
3
refs/heads/snap-stage1: e33de59e47c5076a89eadeb38f4934f58a3618a6
4
refs/heads/snap-stage3: eb8fd119c65c67f3b1b8268cc7341c22d39b7b61
5
refs/heads/try: d324a424d8f84b1eb049b12cf34182bda91b0024
trunk/src/test/compile-fail/functional-struct-update.rs
@@ -0,0 +1,16 @@
+struct Bar {
+ x: int,
+ drop { io::println("Goodbye, cruel world"); }
+}
+
6
+struct Foo {
7
8
+ y: Bar
9
10
11
+fn main() {
12
+ let a = Foo { x: 1, y: Bar { x: 5 } };
13
+ let c = Foo { x: 4, .. a}; //~ ERROR copying a noncopyable value
14
+ io::println(fmt!("%?", c));
15
16
0 commit comments