You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
$ cargo run
Compiling rust_blogpost_ui v0.1.0 (~/Documents/rust_blogpost_u
i)
error[E0281]: type mismatch: the type `[closure@src/main.rs:25:20: 28:10]` implemen
ts the trait `for<'r> std::ops::Fn<(&'r mut cursive::Cursive, &'r post::Post)>`, bu
t the trait `for<'r, 'r> std::ops::Fn<(&'r mut cursive::Cursive, &'r _)>` is requir
ed (expected concrete lifetime, found bound lifetime parameter )
--> src/main.rs:25:10
|
25 | .on_submit(|s, post: &post::Post| {
| ^^^^^^^^^
error[E0271]: type mismatch resolving `for<'r, 'r> <[closure@src/main.rs:25:20: 28:
10] as std::ops::FnOnce<(&'r mut cursive::Cursive, &'r _)>>::Output == ()`
--> src/main.rs:25:10
|
25 | .on_submit(|s, post: &post::Post| {
| ^^^^^^^^^ expected bound lifetime parameter , found concrete lifetime
|
= note: concrete lifetime that was found is lifetime ReSkolemized(1, BrAnon(1))
error: aborting due to 2 previous errors
error: Could not compile `rust_blogpost_ui`.
To learn more, run the command again with --verbose.
https://github.com/bjorn3/rust_blogpost_ui/tree/fb560c78a6e737561ef769673ddc39515df4a77b fails to compile with
Notice the
ReSkolemized(1, BrAnon(1))
rust info:
The text was updated successfully, but these errors were encountered: