]> git.lizzy.rs Git - rust.git/blob - src/test/ui/issues/issue-38868.stderr
10d1e7c4e66dc20aa908f49e9e195030a3266ebe
[rust.git] / src / test / ui / issues / issue-38868.stderr
1 error[E0366]: `Drop` impls cannot be specialized
2   --> $DIR/issue-38868.rs:5:1
3    |
4 LL | / impl Drop for List<i32> {
5 LL | |     fn drop(&mut self) {
6 LL | |         panic!()
7 LL | |     }
8 LL | | }
9    | |_^
10    |
11 note: use the same sequence of generic type, lifetime and const parameters as the struct definition
12   --> $DIR/issue-38868.rs:1:1
13    |
14 LL | / pub struct List<T> {
15 LL | |     head: T,
16 LL | | }
17    | |_^
18
19 error: aborting due to previous error
20
21 For more information about this error, try `rustc --explain E0366`.