summary refs log tree commit diff
path: root/src/test/ui/issue-38868.stderr
blob: 3a8ffe7d5e9c6ff87f2f1f62f1109d584a41ee22 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
error[E0366]: Implementations of Drop cannot be specialized
  --> $DIR/issue-38868.rs:15:1
   |
LL | / impl Drop for List<i32> { //~ ERROR E0366
LL | |     fn drop(&mut self) {
LL | |         panic!()
LL | |     }
LL | | }
   | |_^
   |
note: Use same sequence of generic type and region parameters that is on the struct/enum definition
  --> $DIR/issue-38868.rs:11:1
   |
LL | / pub struct List<T> {
LL | |     head: T,
LL | | }
   | |_^

error: aborting due to previous error

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