2014-07-30 20:43:55 -05:00
|
|
|
pub struct GslResult {
|
|
|
|
pub val: f64,
|
|
|
|
pub err: f64
|
|
|
|
}
|
|
|
|
|
|
|
|
impl GslResult {
|
|
|
|
pub fn new() -> GslResult {
|
2016-11-30 16:35:25 -06:00
|
|
|
Result {
|
|
|
|
//~^ ERROR expected struct, variant or union type, found enum `Result`
|
2014-07-30 20:43:55 -05:00
|
|
|
val: 0f64,
|
|
|
|
err: 0f64
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
fn main() {}
|