Skip to content

Instantly share code, notes, and snippets.

@kinggoesgaming
Created July 30, 2018 16:49
Show Gist options
  • Save kinggoesgaming/2af3ec3fb0f8affcf34b3f10f66e7570 to your computer and use it in GitHub Desktop.
Save kinggoesgaming/2af3ec3fb0f8affcf34b3f10f66e7570 to your computer and use it in GitHub Desktop.
impl str::FromStr for Uuid {
type Err = parser::UuidParseError;
fn from_str(uuid_str: &str) -> Result<Uuid, Self::Err> {
Uuid::parse_str(uuid_str)
}
}
Compiling uuid v0.6.5 (file:///home/developer/src/uuid)
error[E0106]: missing lifetime specifier
--> src/core_support.rs:58:16
|
58 | type Err = parser::UuidParseError;
| ^^^^^^^^^^^^^^^^^^^^^^ expected lifetime parameter
error: aborting due to previous error
error: Could not compile `uuid`.
pub enum UuidParseError<'a> {
...
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment