alfonsogarciacaro/fable-rust-sample

Rust compilation fails when running Fable in debug mode

alfonsogarciacaro opened this issue · 1 comments

@ncave I updated Fable to theta-008 and I started to get errors in watch mode. I realized that if I add -c Release (or just don't watch) the errors go away, so I assume it has to do with DEBUG compilation. Any ideas?

   Compiling fable-rust-sample v0.1.0 (C:\Users\alfon\repos\fable-rust-sample)
error[E0308]: mismatched types
  --> src\.\File.rs:27:49
   |
27 |                         let e: std::io::Error = matchValue_1_0.clone();
   |                                --------------   ^^^^^^^^^^^^^^^^^^^^^^ expected struct `std::io::Error`, found `&std::io::Error`
   |                                |
   |                                expected due to this
   |
note: `std::io::Error` does not implement `Clone`, so `&std::io::Error` was cloned instead
  --> src\.\File.rs:27:49
   |
27 |                         let e: std::io::Error = matchValue_1_0.clone();
   |                                                 ^^^^^^^^^^^^^^

error[E0308]: mismatched types
  --> src\.\File.rs:42:49
   |
42 |                         let e: std::io::Error = matchValue_1_0.clone();
   |                                --------------   ^^^^^^^^^^^^^^^^^^^^^^ expected struct `std::io::Error`, found `&std::io::Error`
   |                                |
   |                                expected due to this
   |
note: `std::io::Error` does not implement `Clone`, so `&std::io::Error` was cloned instead
  --> src\.\File.rs:42:49
   |
42 |                         let e: std::io::Error = matchValue_1_0.clone();
   |                                                 ^^^^^^^^^^^^^^

error[E0308]: mismatched types
  --> src\.\File.rs:57:49
   |
57 |                         let e: std::io::Error = matchValue_1_0.clone();
   |                                --------------   ^^^^^^^^^^^^^^^^^^^^^^ expected struct `std::io::Error`, found `&std::io::Error`
   |                                |
   |                                expected due to this
   |
note: `std::io::Error` does not implement `Clone`, so `&std::io::Error` was cloned instead
  --> src\.\File.rs:57:49
   |
57 |                         let e: std::io::Error = matchValue_1_0.clone();
   |                                                 ^^^^^^^^^^^^^^

ne();
   |                                --------------   ^^^^^^^^^^^^^^^^^^^^^^ expected struct `std::io::Error`, found `&std::io::Error`
   |                                |
   |                                expected due to this
   |
note: `std::io::Error` does not implement `Clone`, so `&std::io::Error` was cloned instead
  --> src\.\File.rs:99:49
   |
99 |                         let e: std::io::Error = matchValue_1_0.clone();
   |                                                 ^^^^^^^^^^^^^^

For more information about this error, try `rustc --explain E0308`.
error: could not compile `fable-rust-sample` due to 4 previous errors
ncave commented

Fixed by #4.