summaryrefslogtreecommitdiffstats
path: root/src/test/ui/compare-method/region-unrelated.stderr
diff options
context:
space:
mode:
Diffstat (limited to 'src/test/ui/compare-method/region-unrelated.stderr')
-rw-r--r--src/test/ui/compare-method/region-unrelated.stderr12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/test/ui/compare-method/region-unrelated.stderr b/src/test/ui/compare-method/region-unrelated.stderr
new file mode 100644
index 000000000..f7ae6f944
--- /dev/null
+++ b/src/test/ui/compare-method/region-unrelated.stderr
@@ -0,0 +1,12 @@
+error[E0276]: impl has stricter requirements than trait
+ --> $DIR/region-unrelated.rs:9:23
+ |
+LL | fn foo() where T: 'a;
+ | --------------------- definition of `foo` from trait
+...
+LL | fn foo() where V: 'a { }
+ | ^^ impl has extra requirement `V: 'a`
+
+error: aborting due to previous error
+
+For more information about this error, try `rustc --explain E0276`.