2012-11-02 12:43:15 -05:00
|
|
|
// error-pattern: can only dereference structs
|
2012-09-05 17:58:43 -05:00
|
|
|
struct cat {
|
|
|
|
x: ()
|
|
|
|
}
|
2012-05-17 11:40:43 -05:00
|
|
|
|
|
|
|
fn main() {
|
2012-09-05 17:58:43 -05:00
|
|
|
let kitty : cat = cat { x: () };
|
|
|
|
log (error, *kitty);
|
2012-11-02 12:43:15 -05:00
|
|
|
}
|