summaryrefslogtreecommitdiffstats
path: root/tests/ui/issues/issue-17959.stderr
diff options
context:
space:
mode:
Diffstat (limited to 'tests/ui/issues/issue-17959.stderr')
-rw-r--r--tests/ui/issues/issue-17959.stderr15
1 files changed, 15 insertions, 0 deletions
diff --git a/tests/ui/issues/issue-17959.stderr b/tests/ui/issues/issue-17959.stderr
new file mode 100644
index 000000000..fb795febf
--- /dev/null
+++ b/tests/ui/issues/issue-17959.stderr
@@ -0,0 +1,15 @@
+error[E0367]: `Drop` impl requires `T: Sized` but the struct it is implemented for does not
+ --> $DIR/issue-17959.rs:11:6
+ |
+LL | impl<T> Drop for G<T> {
+ | ^
+ |
+note: the implementor must specify the same requirement
+ --> $DIR/issue-17959.rs:7:1
+ |
+LL | struct G<T: ?Sized> {
+ | ^^^^^^^^^^^^^^^^^^^
+
+error: aborting due to previous error
+
+For more information about this error, try `rustc --explain E0367`.