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
I tried to install your module (0.3.6) with the nightly rust and I got this error:
Updating registry `https://github.com/rust-lang/crates.io-index`
Downloading shaderc v0.3.6
Downloading cmake v0.1.31
Compiling cc v1.0.15
Compiling libc v0.2.40
Compiling rand v0.4.2
Compiling cmake v0.1.31
Compiling shaderc v0.3.6
Compiling test1 v0.1.0 (file:///home/realitix/git/rust_practice/test1)
error[E0623]: lifetime mismatch
--> src/main.rs:3:9
|
1 | fn longest<'a,'b>(x: &'a str, y: &'b str) -> &'b str {
| ------- -------
| |
| this parameter and the return type are declared with different lifetimes...
2 | if x.len() > y.len() {
3 | x
| ^ ...but data from `x` is returned here
error: aborting due to previous error
For more information about this error, try `rustc --explain E0623`.
error: Could not compile `test1`.
To learn more, run the command again with --verbose.
Do you know why I get this error ?
The text was updated successfully, but these errors were encountered:
Hello @antiagainst,
I tried to install your module (0.3.6) with the nightly rust and I got this error:
Do you know why I get this error ?
The text was updated successfully, but these errors were encountered: