mirror of
https://github.com/rust-lang/rust.git
synced 2026-05-30 04:56:25 +03:00
Port another resource test to use classes
This commit is contained in:
@@ -1,7 +1,8 @@
|
||||
// error-pattern:mismatched types: expected `()` but found `bool`
|
||||
|
||||
resource r(i: int) {
|
||||
true
|
||||
class r {
|
||||
new() {}
|
||||
drop { true }
|
||||
}
|
||||
|
||||
fn main() {
|
||||
|
||||
Reference in New Issue
Block a user