summaryrefslogtreecommitdiffstats
path: root/src/test/ui/polymorphization/predicates.stderr
blob: e5af1d7515f6c91f5b250a5619574a507fa26b31 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
error: item has unused generic parameters
  --> $DIR/predicates.rs:15:4
   |
LL | fn foo<I, T>(_: I)
   |    ^^^    - generic parameter `T` is unused

error: item has unused generic parameters
  --> $DIR/predicates.rs:24:4
   |
LL | fn baz<I, T>(_: I)
   |    ^^^    - generic parameter `T` is unused

error: item has unused generic parameters
  --> $DIR/predicates.rs:45:19
   |
LL | impl<'a, I, T: 'a, E> Iterator for Foo<'a, I, E>
   |          -         - generic parameter `E` is unused
   |          |
   |          generic parameter `I` is unused
...
LL |         self.find(|_| true)
   |                   ^^^

error: item has unused generic parameters
  --> $DIR/predicates.rs:59:4
   |
LL | fn quux<A, B, C: Default>() -> usize
   |    ^^^^ -  - generic parameter `B` is unused
   |         |
   |         generic parameter `A` is unused

error: item has unused generic parameters
  --> $DIR/predicates.rs:76:4
   |
LL | fn foobar<F, G>() -> usize
   |    ^^^^^^ - generic parameter `F` is unused

error: item has unused generic parameters
  --> $DIR/predicates.rs:10:4
   |
LL | fn bar<I>() {
   |    ^^^ - generic parameter `I` is unused

note: the above error was encountered while instantiating `fn foo::<std::slice::Iter<u32>, T>`
  --> $DIR/predicates.rs:86:5
   |
LL |     foo(x.iter());
   |     ^^^^^^^^^^^^^

error: aborting due to 6 previous errors