summary refs log tree commit diff
path: root/src/test/ui/issue-17959.stderr
blob: 626b670ae35553501e72ba0bedc18439ad811562 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
error[E0367]: The requirement `T: std::marker::Sized` is added only by the Drop impl.
  --> $DIR/issue-17959.rs:21:1
   |
LL | / impl<T> Drop for G<T> {
LL | | //~^ ERROR: The requirement `T: std::marker::Sized` is added only by the Drop impl. [E0367]
LL | |     fn drop(&mut self) {
LL | |         if !self._ptr.is_null() {
LL | |         }
LL | |     }
LL | | }
   | |_^
   |
note: The same requirement must be part of the struct/enum definition
  --> $DIR/issue-17959.rs:17:1
   |
LL | / struct G<T: ?Sized> {
LL | |     _ptr: *const T
LL | | }
   | |_^

error: aborting due to previous error

For more information about this error, try `rustc --explain E0367`.