mirror of
https://github.com/rust-lang/rust.git
synced 2025-10-04 03:07:25 +00:00
9 lines
178 B
Rust
9 lines
178 B
Rust
class cat : nonexistent { //~ ERROR expected one of `!` or `::`, found `cat`
|
|
let meows: usize;
|
|
new(in_x : usize) { self.meows = in_x; }
|
|
}
|
|
|
|
fn main() {
|
|
let nyan = cat(0);
|
|
}
|