2021-12-13 11:03:22 -06:00
|
|
|
error: item has unused generic parameters
|
2022-05-17 09:18:40 -05:00
|
|
|
--> $DIR/predicates.rs:15:4
|
2020-08-20 05:42:56 -05:00
|
|
|
|
|
|
|
|
LL | fn foo<I, T>(_: I)
|
|
|
|
| ^^^ - generic parameter `T` is unused
|
|
|
|
|
|
|
|
error: item has unused generic parameters
|
2022-05-17 09:18:40 -05:00
|
|
|
--> $DIR/predicates.rs:24:4
|
2020-08-20 05:42:56 -05:00
|
|
|
|
|
|
|
|
LL | fn baz<I, T>(_: I)
|
|
|
|
| ^^^ - generic parameter `T` is unused
|
|
|
|
|
|
|
|
error: item has unused generic parameters
|
2022-05-17 09:18:40 -05:00
|
|
|
--> $DIR/predicates.rs:45:19
|
2020-08-20 05:42:56 -05:00
|
|
|
|
|
|
|
|
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)
|
2022-06-27 00:45:35 -05:00
|
|
|
| ^^^
|
2020-08-20 05:42:56 -05:00
|
|
|
|
2020-06-22 07:57:03 -05:00
|
|
|
error: item has unused generic parameters
|
2022-05-17 09:18:40 -05:00
|
|
|
--> $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
|
2020-06-22 07:57:03 -05:00
|
|
|
|
|
|
|
|
LL | fn bar<I>() {
|
|
|
|
| ^^^ - generic parameter `I` is unused
|
|
|
|
|
2022-09-11 07:37:55 -05:00
|
|
|
note: the above error was encountered while instantiating `fn foo::<std::slice::Iter<'_, u32>, T>`
|
2022-05-17 09:18:40 -05:00
|
|
|
--> $DIR/predicates.rs:86:5
|
2022-04-30 04:04:15 -05:00
|
|
|
|
|
|
|
|
LL | foo(x.iter());
|
|
|
|
| ^^^^^^^^^^^^^
|
|
|
|
|
2020-08-20 05:42:56 -05:00
|
|
|
error: aborting due to 6 previous errors
|
2020-06-22 07:57:03 -05:00
|
|
|
|