Skip to content

Commit 11b4a92

Browse files
committed
Port another resource test to use classes
1 parent facb5c0 commit 11b4a92

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/test/compile-fail/block-must-not-have-result-res.rs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
// error-pattern:mismatched types: expected `()` but found `bool`
22

3-
resource r(i: int) {
4-
true
3+
class r {
4+
new() {}
5+
drop { true }
56
}
67

78
fn main() {

0 commit comments

Comments
 (0)