]> git.lizzy.rs Git - rust.git/blob - tests/ui/extra_unused_lifetimes.stderr
Auto merge of #4478 - tsurai:master, r=flip1995
[rust.git] / tests / ui / extra_unused_lifetimes.stderr
1 error: this lifetime isn't used in the function definition
2   --> $DIR/extra_unused_lifetimes.rs:14:14
3    |
4 LL | fn unused_lt<'a>(x: u8) {}
5    |              ^^
6    |
7    = note: `-D clippy::extra-unused-lifetimes` implied by `-D warnings`
8
9 error: this lifetime isn't used in the function definition
10   --> $DIR/extra_unused_lifetimes.rs:16:25
11    |
12 LL | fn unused_lt_transitive<'a, 'b: 'a>(x: &'b u8) {
13    |                         ^^
14
15 error: this lifetime isn't used in the function definition
16   --> $DIR/extra_unused_lifetimes.rs:41:10
17    |
18 LL |     fn x<'a>(&self) {}
19    |          ^^
20
21 error: this lifetime isn't used in the function definition
22   --> $DIR/extra_unused_lifetimes.rs:67:22
23    |
24 LL |         fn unused_lt<'a>(x: u8) {}
25    |                      ^^
26
27 error: aborting due to 4 previous errors
28