fork/rust

git clone https://git.julia.blue/fork/rust

borsAuto merge of #69854 - pietroalbini:stable-next, r=Centrilb8cedc00407

1.42.0
637 B16 linesraw
1error[E0621]: explicit lifetime required in the type of `s`
2  --> $DIR/regions-glb-free-free.rs:15:13
3   |
4LL |           pub fn set_desc(self, s: &str) -> Flag<'a> {
5   |                                    ---- help: add explicit lifetime `'a` to the type of `s`: `&'a str`
6LL | /             Flag {
7LL | |                 name: self.name,
8LL | |                 desc: s,
9LL | |                 max_count: self.max_count,
10LL | |                 value: self.value
11LL | |             }
12   | |_____________^ lifetime `'a` required
13
14error: aborting due to previous error
15
16For more information about this error, try `rustc --explain E0621`.