2017-04-18 06:28:05 -05:00
|
|
|
struct Handle {}
|
|
|
|
|
|
|
|
struct Something {
|
|
|
|
handle: Handle
|
|
|
|
}
|
|
|
|
|
|
|
|
fn main() {
|
|
|
|
let handle: Handle = Handle {};
|
|
|
|
|
|
|
|
let s: Something = Something {
|
|
|
|
handle: Handle
|
2017-11-20 06:13:27 -06:00
|
|
|
//~^ ERROR expected value, found struct `Handle`
|
2017-04-18 06:28:05 -05:00
|
|
|
};
|
|
|
|
}
|