summaryrefslogtreecommitdiffstats
path: root/tests/ui/dropck/issue-38868.stderr
blob: ec81c2ea646f83ef295b5d0c9f018807a4bb48eb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
error[E0366]: `Drop` impls cannot be specialized
  --> $DIR/issue-38868.rs:5:1
   |
LL | impl Drop for List<i32> {
   | ^^^^^^^^^^^^^^^^^^^^^^^
   |
   = note: `i32` is not a generic parameter
note: use the same sequence of generic lifetime, type and const parameters as the struct definition
  --> $DIR/issue-38868.rs:1:1
   |
LL | pub struct List<T> {
   | ^^^^^^^^^^^^^^^^^^

error: aborting due to previous error

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