summaryrefslogtreecommitdiffstats
path: root/tests/ui/polymorphization/predicates.stderr
diff options
context:
space:
mode:
Diffstat (limited to 'tests/ui/polymorphization/predicates.stderr')
-rw-r--r--tests/ui/polymorphization/predicates.stderr18
1 files changed, 6 insertions, 12 deletions
diff --git a/tests/ui/polymorphization/predicates.stderr b/tests/ui/polymorphization/predicates.stderr
index 80bb2af25..a3b2f75b1 100644
--- a/tests/ui/polymorphization/predicates.stderr
+++ b/tests/ui/polymorphization/predicates.stderr
@@ -1,4 +1,10 @@
error: item has unused generic parameters
+ --> $DIR/predicates.rs:10:4
+ |
+LL | fn bar<I>() {
+ | ^^^ - generic parameter `I` is unused
+
+error: item has unused generic parameters
--> $DIR/predicates.rs:15:4
|
LL | fn foo<I, T>(_: I)
@@ -35,17 +41,5 @@ error: item has unused generic parameters
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