]> git.proxmox.com Git - rustc.git/blame - tests/ui/regions/regions-glb-free-free.stderr
New upstream version 1.76.0+dfsg1
[rustc.git] / tests / ui / regions / regions-glb-free-free.stderr
CommitLineData
b7449926 1error[E0621]: explicit lifetime required in the type of `s`
0731742a 2 --> $DIR/regions-glb-free-free.rs:15:13
b7449926
XL
3 |
4LL | pub fn set_desc(self, s: &str) -> Flag<'a> {
5 | ---- help: add explicit lifetime `'a` to the type of `s`: `&'a str`
532ac7d7 6LL | / Flag {
b7449926
XL
7LL | | name: self.name,
8LL | | desc: s,
9LL | | max_count: self.max_count,
10LL | | value: self.value
11LL | | }
12 | |_____________^ lifetime `'a` required
13
4b012472 14error: aborting due to 1 previous error
b7449926
XL
15
16For more information about this error, try `rustc --explain E0621`.