fork/rust

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

borsAuto merge of #67350 - Mark-Simulacrum:stable-next, r=Mark-Simulacrum73528e339aa

1.40.0
529 B21 linesraw
1error[E0366]: Implementations of Drop cannot be specialized
2  --> $DIR/issue-38868.rs:5:1
3   |
4LL | / impl Drop for List<i32> {
5LL | |     fn drop(&mut self) {
6LL | |         panic!()
7LL | |     }
8LL | | }
9   | |_^
10   |
11note: Use same sequence of generic type and region parameters that is on the struct/enum definition
12  --> $DIR/issue-38868.rs:1:1
13   |
14LL | / pub struct List<T> {
15LL | |     head: T,
16LL | | }
17   | |_^
18
19error: aborting due to previous error
20
21For more information about this error, try `rustc --explain E0366`.