summaryrefslogtreecommitdiffstats
path: root/src/test/ui/issues/issue-17959.stderr
blob: fb795febf795459f9eb10f34448835a64caf7ab2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
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`.