diff options
Diffstat (limited to '')
-rw-r--r-- | src/test/ui/issues/issue-18937.stderr | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/src/test/ui/issues/issue-18937.stderr b/src/test/ui/issues/issue-18937.stderr new file mode 100644 index 000000000..5e2ba0ef4 --- /dev/null +++ b/src/test/ui/issues/issue-18937.stderr @@ -0,0 +1,14 @@ +error[E0276]: impl has stricter requirements than trait + --> $DIR/issue-18937.rs:20:31 + | +LL | / fn foo<F>(&mut self, f: F) +LL | | where F: fmt::Debug + 'a, +LL | | Self: Sized; + | |__________________________- definition of `foo` from trait +... +LL | where F: fmt::Debug + 'static, + | ^^^^^^^ impl has extra requirement `F: 'static` + +error: aborting due to previous error + +For more information about this error, try `rustc --explain E0276`. |