9 lines
151 B
Rust
9 lines
151 B
Rust
// error-pattern: type cat cannot be dereferenced
|
|
struct cat {
|
|
x: ()
|
|
}
|
|
|
|
fn main() {
|
|
let kitty : cat = cat { x: () };
|
|
log (error, *kitty);
|
|
} |