summaryrefslogtreecommitdiffstats
path: root/src/test/ui/compare-method/traits-misc-mismatch-1.stderr
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-17 12:02:58 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-17 12:02:58 +0000
commit698f8c2f01ea549d77d7dc3338a12e04c11057b9 (patch)
tree173a775858bd501c378080a10dca74132f05bc50 /src/test/ui/compare-method/traits-misc-mismatch-1.stderr
parentInitial commit. (diff)
downloadrustc-698f8c2f01ea549d77d7dc3338a12e04c11057b9.tar.xz
rustc-698f8c2f01ea549d77d7dc3338a12e04c11057b9.zip
Adding upstream version 1.64.0+dfsg1.upstream/1.64.0+dfsg1
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'src/test/ui/compare-method/traits-misc-mismatch-1.stderr')
-rw-r--r--src/test/ui/compare-method/traits-misc-mismatch-1.stderr66
1 files changed, 66 insertions, 0 deletions
diff --git a/src/test/ui/compare-method/traits-misc-mismatch-1.stderr b/src/test/ui/compare-method/traits-misc-mismatch-1.stderr
new file mode 100644
index 000000000..805c04536
--- /dev/null
+++ b/src/test/ui/compare-method/traits-misc-mismatch-1.stderr
@@ -0,0 +1,66 @@
+error[E0276]: impl has stricter requirements than trait
+ --> $DIR/traits-misc-mismatch-1.rs:27:26
+ |
+LL | fn test_error1_fn<T: Eq>(&self);
+ | -------------------------------- definition of `test_error1_fn` from trait
+...
+LL | fn test_error1_fn<T: Ord>(&self) {}
+ | ^^^ impl has extra requirement `T: Ord`
+
+error[E0276]: impl has stricter requirements than trait
+ --> $DIR/traits-misc-mismatch-1.rs:31:31
+ |
+LL | fn test_error2_fn<T: Eq + Ord>(&self);
+ | -------------------------------------- definition of `test_error2_fn` from trait
+...
+LL | fn test_error2_fn<T: Eq + B>(&self) {}
+ | ^ impl has extra requirement `T: B`
+
+error[E0276]: impl has stricter requirements than trait
+ --> $DIR/traits-misc-mismatch-1.rs:35:26
+ |
+LL | fn test_error3_fn<T: Eq + Ord>(&self);
+ | -------------------------------------- definition of `test_error3_fn` from trait
+...
+LL | fn test_error3_fn<T: B + Eq>(&self) {}
+ | ^ impl has extra requirement `T: B`
+
+error[E0276]: impl has stricter requirements than trait
+ --> $DIR/traits-misc-mismatch-1.rs:45:26
+ |
+LL | fn test_error5_fn<T: A>(&self);
+ | ------------------------------- definition of `test_error5_fn` from trait
+...
+LL | fn test_error5_fn<T: B>(&self) {}
+ | ^ impl has extra requirement `T: B`
+
+error[E0276]: impl has stricter requirements than trait
+ --> $DIR/traits-misc-mismatch-1.rs:51:30
+ |
+LL | fn test_error7_fn<T: A>(&self);
+ | ------------------------------- definition of `test_error7_fn` from trait
+...
+LL | fn test_error7_fn<T: A + Eq>(&self) {}
+ | ^^ impl has extra requirement `T: Eq`
+
+error[E0276]: impl has stricter requirements than trait
+ --> $DIR/traits-misc-mismatch-1.rs:54:26
+ |
+LL | fn test_error8_fn<T: B>(&self);
+ | ------------------------------- definition of `test_error8_fn` from trait
+...
+LL | fn test_error8_fn<T: C>(&self) {}
+ | ^ impl has extra requirement `T: C`
+
+error[E0276]: impl has stricter requirements than trait
+ --> $DIR/traits-misc-mismatch-1.rs:67:18
+ |
+LL | fn method<G:Getter<isize>>(&self);
+ | ---------------------------------- definition of `method` from trait
+...
+LL | fn method<G: Getter<usize>>(&self) {}
+ | ^^^^^^^^^^^^^ impl has extra requirement `G: Getter<usize>`
+
+error: aborting due to 7 previous errors
+
+For more information about this error, try `rustc --explain E0276`.