1 error[E0597]: `s` does not live long enough
2 --> $DIR/lifetime-update.rs:20:17
4 LL | let s = String::from("hello");
5 | - binding `s` declared here
8 | ^^ borrowed value does not live long enough
10 LL | let m2: Machine<'static, State1> = Machine {
11 | ------------------------ type annotation requires that `s` is borrowed for `'static`
14 | - `s` dropped here while still borrowed
16 error: aborting due to previous error
18 For more information about this error, try `rustc --explain E0597`.