fork/rust

git clone https://git.julia.blue/fork/rust

borsAuto merge of #71365 - Mark-Simulacrum:stable-next, r=Mark-Simulacrum4fb7144ed15

1.43.0
459 B17 linesraw
1error[E0367]: `Drop` impl requires `T: std::marker::Sized` but the struct it is implemented for does not
2  --> $DIR/issue-17959.rs:11:6
3   |
4LL | impl<T> Drop for G<T> {
5   |      ^
6   |
7note: the implementor must specify the same requirement
8  --> $DIR/issue-17959.rs:7:1
9   |
10LL | / struct G<T: ?Sized> {
11LL | |     _ptr: *const T
12LL | | }
13   | |_^
14
15error: aborting due to previous error
16
17For more information about this error, try `rustc --explain E0367`.