10 lines
141 B
Rust
10 lines
141 B
Rust
|
class c { //! ERROR A class must have at least one field
|
||
|
new() { }
|
||
|
}
|
||
|
|
||
|
fn main() {
|
||
|
let a = c();
|
||
|
let x = [a];
|
||
|
let _y = x[0];
|
||
|
}
|