]> git.lizzy.rs Git - rust.git/commit
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)
commitf9686334ac0c71e1f2137d44f7e471292c1251da
tree8978bd8fd74ae24c2f382ca35c4d53cf51a59bc9
parentb0e41f103873908c82b86513e4698beae99d3576
parent973baaa5b2f91876e1304272fffdea2d0679554f
Auto merge of #51697 - estebank:once-used-lifetime-label, r=oli-obk

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...
```