fork/rust

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

borsAuto merge of #69854 - pietroalbini:stable-next, r=Centrilb8cedc00407

1.42.0
518 B21 linesraw
1error[E0366]: `Drop` impls 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 the same sequence of generic type, lifetime and const parameters as the struct 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`.