]> git.lizzy.rs Git - rust.git/commitdiff
Auto merge of #51697 - estebank:once-used-lifetime-label, r=oli-obk
authorbors <bors@rust-lang.org>
Sat, 23 Jun 2018 00:06:54 +0000 (00:06 +0000)
committerbors <bors@rust-lang.org>
Sat, 23 Jun 2018 00:06:54 +0000 (00:06 +0000)
Add label to lint for lifetimes used once

```
error: lifetime parameter `'a` only used once
  --> $DIR/fn-types.rs:19:10
   |
LL |   a: for<'a> fn(&'a u32), //~ ERROR `'a` only used once
   |          ^^      -- ...is used only here
   |          |
   |          this lifetime...
```


Trivial merge