rust/src/test/ui/single-use-lifetime/one-use-in-fn-argument.stderr

17 lines
424 B
Plaintext
Raw Normal View History

2018-05-03 17:43:28 -05:00
error: lifetime parameter `'a` only used once
--> $DIR/one-use-in-fn-argument.rs:18:6
|
LL | fn a<'a>(x: &'a u32) { //~ ERROR `'a` only used once
| ^^ -- ...is used only here
| |
| this lifetime...
2018-05-03 17:43:28 -05:00
|
note: lint level defined here
--> $DIR/one-use-in-fn-argument.rs:11:9
|
2018-05-18 17:13:53 -05:00
LL | #![deny(single_use_lifetimes)]
| ^^^^^^^^^^^^^^^^^^^^
2018-05-03 17:43:28 -05:00
error: aborting due to previous error