summaryrefslogtreecommitdiffstats
path: root/tests/ui/polymorphization/lifetimes.stderr
blob: 4773dd4fa2ef18eae00d16c033d799b6c0414a3b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
error: item has unused generic parameters
  --> $DIR/lifetimes.rs:10:8
   |
LL | pub fn unused<'a, T>(_: &'a u32) {
   |        ^^^^^^     - generic parameter `T` is unused

error: item has unused generic parameters
  --> $DIR/lifetimes.rs:17:19
   |
LL | pub fn used<'a, T: Default>(_: &'a u32) -> u32 {
   |                 - generic parameter `T` is unused
LL |     let _: T = Default::default();
LL |     let add_one = |x: u32| x + 1;
   |                   ^^^^^^^^

error: aborting due to 2 previous errors