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