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 fab57f1 commit c5b0f44Copy full SHA for c5b0f44
[refs]
@@ -1,2 +1,2 @@
1
---
2
-refs/heads/master: 8e585e7008ac5b01c76b6f5830aa9e3104d83bbd
+refs/heads/master: 6bd80d01217c621b754f669188c0826c01af8fda
trunk/src/test/compile-fail/extend-non-object.rs
@@ -0,0 +1,13 @@
+//error-pattern:x does not have object type
+use std;
3
+
4
+fn main() {
5
+ auto x = 3;
6
7
+ auto anon_obj = obj {
8
+ fn foo() -> int {
9
+ ret 3;
10
+ }
11
+ with x
12
+ };
13
+}
0 commit comments