]>
git.proxmox.com Git - rustc.git/blob - src/doc/book/listings/ch10-generic-types-traits-and-lifetimes/listing-10-25/src/main.rs
1 struct ImportantExcerpt
<'a
> {
6 let novel
= String
::from("Call me Ishmael. Some years ago...");
7 let first_sentence
= novel
.split('
.'
).next().expect("Could not find a '.'");
8 let i
= ImportantExcerpt
{