Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Androidstudio 运行 mod.rs文件一直报这个错误 #3118

Open
winnxiegang opened this issue Aug 2, 2023 · 0 comments
Open

Androidstudio 运行 mod.rs文件一直报这个错误 #3118

winnxiegang opened this issue Aug 2, 2023 · 0 comments
Labels

Comments

@winnxiegang
Copy link

C:\Users\hp.cargo\registry\src\mirrors.ustc.edu.cn-61ef6e0cd06fb9b8\serde-1.0.152\src\private\ser.rs:294:9
|
294 | try!(state.serialize_field(self.tag, self.variant_name));
| -------------------------------------------------------- in this macro invocation
|
= note: this error originates in the macro try (in Nightly builds, run with -Z macro-backtrace for more info)

error[E0425]: cannot find function, tuple struct or tuple variant Some in this scope
--> C:\Users\hp.cargo\registry\src\mirrors.ustc.edu.cn-61ef6e0cd06fb9b8\serde-1.0.152\src\private\ser.rs:319:56
|
319 | let mut map = try!(self.delegate.serialize_map(Some(2)));
| ^^^^ not found in this scope
|
help: consider importing one of these items
|
1 + use __private::de::Content::Some;
|
1 + use __private::ser::Content::Some;
|

error[E0531]: cannot find tuple struct or tuple variant Ok in this scope
--> C:\Users\hp.cargo\registry\src\mirrors.ustc.edu.cn-61ef6e0cd06fb9b8\serde-1.0.152\src\lib.rs:280:13
|
280 | Ok(val) => val,
| ^^ not found in this scope
|
::: C:\Users\hp.cargo\registry\src\mirrors.ustc.edu.cn-61ef6e0cd06fb9b8\serde-1.0.152\src\private\ser.rs:319:23
|
319 | let mut map = try!(self.delegate.serialize_map(Some(2)));
| ------------------------------------------ in this macro invocation
|
= note: this error originates in the macro try (in Nightly builds, run with -Z macro-backtrace for more info)

error[E0531]: cannot find tuple struct or tuple variant Err in this scope
--> C:\Users\hp.cargo\registry\src\mirrors.ustc.edu.cn-61ef6e0cd06fb9b8\serde-1.0.152\src\lib.rs:281:13
|
281 | Err(err) => return Err(err),
| ^^^ not found in this scope
|
::: C:\Users\hp.cargo\registry\src\mirrors.ustc.edu.cn-61ef6e0cd06fb9b8\serde-1.0.152\src\private\ser.rs:319:23
|
319 | let mut map = try!(self.delegate.serialize_map(Some(2)));
| -------

@winnxiegang winnxiegang added the bug label Aug 2, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant