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